[plt-scheme] with-input-from-file
It is quite a common mistake to believe to work on some file but in fact
really work on a copy of it ; or to believe to work in a given directory and
really work in another one.
And if you don't spot that early, it may lead to a couple of hours of hair
tearing.
My students do that mistake quite often, and always blame the computer (of
course). And they also often don't believe me at first when I ask them to
double-check the working directory and the file names.
But maybe your problem is somewhere else. That was just in case.
Laurent
On Tue, Mar 9, 2010 at 08:59, Noel Welsh <noelwelsh at gmail.com> wrote:
> Error message, please. I just tried w/ last night's svn, Advanced Student:
>
> ; A file that exists in the current directory
> (with-input-from-file "config.log"
> read)
>
> ; A file that doesn't exist
> (with-input-from-file "does-not-exist"
> read)
>
> Output is:
>
> 'This
> with-input-from-file: cannot open input file:
> "/bham/ums/linux/pd/packages/plt-scheme/src/build/does-not-exist" (No
> such file or directory; errno=2)
>
> N.
>
> On Tue, Mar 9, 2010 at 7:01 AM, wooks . <wookiz at hotmail.com> wrote:
> >
> >
> > I just tried using this in ASL running windows xp. It said it could not
> find
> > my file. The file is in the exact directory reported in the error
> message.
> > Please help.
> > ________________________________
> > We want to hear all your funny, exciting and crazy Hotmail stories. Tell
> us
> > now
> > _________________________________________________
> > For list-related administrative tasks:
> > http://list.cs.brown.edu/mailman/listinfo/plt-scheme
> >
> >
> _________________________________________________
> For list-related administrative tasks:
> http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20100309/bc21b8e6/attachment.html>