[plt-scheme] with-input-from-file

From: wooks . (wookiz at hotmail.com)
Date: Tue Mar 9 16:51:10 EST 2010


Yep that what it was.
Thanks.


> Subject: Re: [plt-scheme] with-input-from-file
> From: sbloch at adelphi.edu
> Date: Tue, 9 Mar 2010 06:47:28 -0500
> CC: wookiz at hotmail.com; plt-scheme at list.cs.brown.edu
> To: noelwelsh at gmail.com
> 
> 
> On Mar 9, 2010, at 6:39 AM, Noel Welsh wrote:
> 
> > On Tue, Mar 9, 2010 at 11:27 AM, wooks . <wookiz at hotmail.com> wrote:
> >> Ah hah...... understood what I was supposed to do now. (directory-list) is
> >> calling the file numbers.txt.txt ......
> >> thats not what the file is called. It's put an extra .txt suffix on it.
> > 
> > I haven't used Windows on a regular basis for about 8 years, but when
> > I did use it there was an option to hide file suffixes. My guess is
> > this option still exists and you have this option turned on. Try this
> > 
> > (rename-file-or-directory "numbers.txt.txt" "numbers.txt")
> > 
> > and see what happens. If Explorer (or whatever the Windows file system
> > viewer is called these days) shows the file as just numbers then we've
> > found the problem.
> 
> I would put money on that.  (directory-list) is telling you the file's REAL name, and (with-input-from-file...) is looking for it by its REAL name.  Windows Explorer is hiding part of the name from you.  When I sit down at a Windows machine, one of the first things I do is uncheck the "Hide suffixes for known filetypes" option so I can see what my files are really named.
> 
> 
> 
> Stephen Bloch
> sbloch at adelphi.edu
> 
> 
> 
 		 	   		  
_________________________________________________________________
Tell us your greatest, weirdest and funniest Hotmail stories
http://clk.atdmt.com/UKM/go/195013117/direct/01/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20100309/172f49c3/attachment.html>

Posted on the users mailing list.