Tuesday, December 10, 2013

With fopen in mac os x under Why no effect?

FILE * outfile;
outfile = fopen ("adsf.txt", "w");



fprintf (outfile, "adsfasdf");
fclose (outfile);


There is no error, the file is not found asdf.txt.
Reply:
NND, need to use absolute paths. . .
Reply:
cited a floor dickson reply:
NND, need to use absolute paths. . .

Relative path can be, look at whether there is a relative file path
Reply:
Can be found

No comments:

Post a Comment