[racket] file will not read into the program

From: Todd O'Bryan (toddobryan at gmail.com)
Date: Mon Nov 21 15:35:48 EST 2011

This is just a guess, but perhaps Windows has helpfully added a ".txt"
extension (or some other nonsense) to the end of your filename? You
might try looking at the file's properties, just to make sure
something weird isn't going on.

On another note, as long as your Fahrenheit->Celsius function works,
don't worry so much about the convert-file interface. That's basically
one of the "bells and whistles" that HtDP included to get students
excited. The latest versions of the curriculum have much flashier
stuff and once you get through about Chapter 20 or so, you can look up
how to access files directly without using a teachpack.


On Mon, Nov 21, 2011 at 11:10 AM, Jakub Hadam <jakub.hadam at gmail.com> wrote:
> Hello,
> I'm using DrRacket as an accompanying material for the HtDP book. I'm
> learning it by myself, not as a part of a schooll assignment.
> I have a problem with the exercise 2.2.1 - when I run the convert-file
> program it doesn't want to accept the input file, the error message I get
> is:
>> (convert-file "file.in" Fahrenheit->Celsius "out.dat")
> convert-file: expects a name of existing file in c:\users\jakub
> hadam\documents\drracket\ as first argument, given "file.in"
> I've made sure the file is in the specified folder, but DrRacket seems to
> refuse to see it. I would be thankfull for any help and sugestions.
> (I have no problem running convert-gui and convert-repl. I use the
> "Beginning Student" language. The OS is Win7Premium)
> Thanks a lot for your help.
> Jakub
> _________________________________________________
>  For list-related administrative tasks:
>  http://lists.racket-lang.org/listinfo/users

Posted on the users mailing list.