<div dir="ltr">Well that&#39;s embarrassing, you&#39;re right, it IS a directory, but I have no clue how it got there. I guess somehow I created a directory from Scheme when trying this stuff out. Which is weird, because all I was doing was calling port functions.<div><br></div><div>So sorry!! </div><div>iain</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Aug 31, 2021 at 3:54 PM &lt;<a href="mailto:bil@ccrma.stanford.edu">bil@ccrma.stanford.edu</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Are you sure that /Users/iainduncan/from-s4m.txt is not<br>
a directory?  s7 just calls fopen with the desired name<br>
(and mode), and if that call fails, uses strerror to<br>
report what happened -- about as simple as IO can get.<br>
I tried both Linux and OSX cases, and had no problems<br>
with hyphens.<br>
<br>
</blockquote></div>