[racket] Finding files

2013-02-01 Thread John Sampson
Many thanks. I can give "(go)" in the interactions window and it works. But to load serve.rkt I had to navigate to its folder. I have not been able to find a succinct description how to cope with the Windows directory system to make Racket find user-created files, either to run them as program

Re: [racket] Finding files

2013-01-31 Thread David Vanderson
Very interesting - thanks for explaining! On 01/31/2013 03:07 PM, Danny Yoo wrote: On Thu, Jan 31, 2013 at 3:30 PM, David Vanderson wrote: (enter! "C:\\indexing\\serve.rkt") Does that work? It looks like you just need to escape the backslashes - they are the escape character for Racket strin

Re: [racket] Finding files

2013-01-31 Thread Matthew Flatt
At Thu, 31 Jan 2013 16:07:01 -0700, Danny Yoo wrote: > But if we're already in DrRacket, why use the enter! stuff to begin > with, when we've got the Run button? Right --- I'll change the margin note in "More" to clarify. Racket Users list: http://lists.racket-lang.org/us

Re: [racket] Finding files

2013-01-31 Thread Danny Yoo
On Thu, Jan 31, 2013 at 3:30 PM, David Vanderson wrote: > (enter! "C:\\indexing\\serve.rkt") > > Does that work? It looks like you just need to escape the backslashes - > they are the escape character for Racket strings. This won't work, unfortunately. enter! takes in "module paths", and accor

Re: [racket] Finding files

2013-01-31 Thread Danny Yoo
> There are images in the conversation as i make guesses but I will paste it > from DrRacket's > interactions window to here (serve.rkt is in a directory "C:\indexing" which > is in the PATH environment > variable): Ah, wonderful! This helps enormously. Ok, so I see that you're on Windows, and

Re: [racket] Finding files

2013-01-31 Thread David Vanderson
(enter! "C:\\indexing\\serve.rkt") Does that work? It looks like you just need to escape the backslashes - they are the escape character for Racket strings. Dave On 01/31/2013 02:01 PM, John Sampson wrote: > (enter! "C:\indexing\serve.rkt") . read: unknown escape sequence \i in string _

[racket] Finding files

2013-01-31 Thread John Sampson
On 31/01/2013 21:38, Danny Yoo wrote: [First question ignored for the moment: the second question seems much more relevant to the problem you're encountering.] Also, I am looking at the document 'Systems Programming with Racket'. It has instructions for making a file "serve.rkt", which I have

Re: [racket] [Racket] Finding files

2013-01-31 Thread Danny Yoo
[First question ignored for the moment: the second question seems much more relevant to the problem you're encountering.] > Also, I am looking at the document 'Systems Programming with Racket'. It has > instructions for making a file "serve.rkt", which I have done, but Racket > cannot > find it,

[racket] [Racket] Finding files

2013-01-31 Thread John Sampson
Can Racket be made to detect the PATH environment variable in Windows 7? If not, is there a way of emulating it so that one does not have to write out the complete path of any file mentioned in Racket code? This includes data files the program might be writing to or reading from. Also, I am loo