Problem with chdir
Hello all!
Please be patient as I have just started programming and have run into a
problem! I have searched the euforum but could not find something similar, I
assume I am doing something wrong, but haven't the foggiest what!!
My problem. I want to look in a directory and open a simple text file for
reading, however, when I try to run the program it pukes out on the 1st line:
include file.e
if chdir ("c:\infofolder\orders") !=1 then
puts(1, "Could not open directory c:\infofolder\orders")
end if
for some reason it keeps giving me a error at the "c:\infofolder" part, seems
it is looking for a \n or something instead of reading it as a directory path.
Do I have to provide a path to file.e, perhaps it is not loading file.e?
Basically
I have copied the above out of the EU docs, so I think the syntax is ok. I'm
running on WinXP.
Sorry, like I said I'm just starting out!!!
Thanks for your help!
|
Not Categorized, Please Help
|
|