Click to See Complete Forum and Search --> : How to specify location of a folder when opening a file.....


stuart
May 9th, 1999, 09:39 AM
How do you specify the location of a folder when opening a file using "fopen"?

Cheers for any help

Stu

May 9th, 1999, 12:20 PM
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
kitai@apdo.com