How do you specify the location of a folder when opening a file using "fopen"?
Cheers for any help
Stu
Printable View
How do you specify the location of a folder when opening a file using "fopen"?
Cheers for any help
Stu
You just give the complete path to the file
FILE *fichero = fopen("c:\\kitai\\rulez\\done.txt", "rw");
note the \\ because on ANSI C the \ is for special characters,
\\ means \ in a string
Kitai, asking what the hell is his password
[email protected]