[plt-scheme] stupid question about Windows path

From: Eli Barzilay (eli at barzilay.org)
Date: Mon May 18 09:31:29 EDT 2009

On May 18, DTNOIZR wrote:
> path don't work (cannot open file) if path include spaces
> this is dont't work under Windows:
> (without spaces - all OK)
> 
> (define p "F:/ALL_MINE/CYBER/PROJECTS/PLT SCHEME/x.mxml")
> (write-to-file "XXX" p #:exists 'replace)
> 
> tried \" .... \" (doublequotes), tried \\ , tried escaping space (\u20)
> have read manual but may be I miss something

What's the exact error message?

If it's something about not being able to open or write to the file,
did you verify that the directory exists and it is write-able?

Also, if this is on Vista, there might be some tricks that the system
is playing with virtual paths.

-- 
          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                  http://www.barzilay.org/                 Maze is Life!


Posted on the users mailing list.