Computer Science Canada

Could someone compile this for me?

Author:  Ultimus [ Sat Aug 21, 2004 11:58 am ]
Post subject:  Could someone compile this for me?

var key : string (1)
var path, input : string
var stream : int
put "Enter File name: "..
get path :*
open : stream, path, put
assert stream > 0
loop
cls
put "First Name: "..
get input :*
exit when input = ""
put : stream, '0,"","' + input + '","' ..
put "Last Name: "..
get input *
put : stream, input + '","","","","' ..
put "Address: "..
get input :*
put : stream, input + '","Toronto","","","Canada","' ..
put "Phone Number: "..
get input :*
put : stream, input + '","","","","","","","","","","","","","","","","",""'
put "Entry saved."
getch (key)
end loop



Should work, I checked through it as best as I could. The thing is I don't have OOT on this computer but I need a quickie program to use as an address book generator the way I want it to work. Seriously, this favor would be much appreciated.[/i]

Author:  Dan [ Sat Aug 21, 2004 12:08 pm ]
Post subject: 

There are errors in your code, but i fixed them and i added the exe in a zip arcive to this post.

Author:  Ultimus [ Sat Aug 21, 2004 4:15 pm ]
Post subject: 

Thanks. Yeah, I see some typos now - it's kinda difficult doing blind programming Smile .


: