CompuServe Thread

#file problems

3 messages in this thread
#40335From: NEIL GOLDSMITHApr 2, 1994 1:50 AM
I seem to be having a little trouble opening a file. When I give the full path name to the file and use fopen I dont open the file. If I am in the dir and just use the name, it works fine. I hardcoded the name and path into the fopen cmd to test it, but it still failed. I typed: if((someptr=fopen("Games:recog/project/Vocab.v","r"))==NULL) printerror(); if I just use Vocab.v in place of the full path, I don't have any trouble at all. I appreciate any help Neil
#40337From: Steve AhlstromApr 2, 1994 4:34 PM
Neil, That looks like it should work … are you sure the path is correct? -sja
#40338From: John Toebes/SYSOPApr 2, 1994 8:05 PM
What does errno say for the error from opening? That would be a big clue as to what is going on.