|
-
May 9th, 1999, 09:39 AM
#1
How to specify location of a folder when opening a file.....
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
#2
Re: How to specify location of a folder when opening a file.....
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]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|