January 18th, 2011, 11:35 AM
I am trying to teach myself programming using the "How To Design Programs" book which utilizes DrRacket. I am trying to complete an exercise where you define a program that converts Fahrenheit to Celsius, I got everthing to work except the file conversion, where it takes data from a file "in.dat" , converts the numbers and writes them to a new file "out.dat" When I run the command it looks like it is successful but then I go to the file, and there is no "out.dat" doc. Can someone tell me what is wrong?
(define (Fahrenheit->Celsius f)
(/ (* (- f 32) 5) 9))
(convert-file "in.dat" Fahrenheit->Celsius "out.dat")
October 22nd, 2011, 12:39 AM
is that everything?
Originally Posted by soC0pth
is this your entire code? if so i beleive that may be the issue. i only gave that section a brief glance but it looked like three functions were required to fully preform this task. i hoep this helps!