-
File processing
Hi,
I wanna know is how to create a file in a specific directory. And if I don't specify a directory, what's the default directory that the file will be created in?
For example, in the following code, where will the file be created?
Code:
cfPtr = fopen( "client.dat", "w" )
Pls also tell me how to create a file in a specific directory.
thnx in advance
-
Your file will be created in the same Dir as your app.
To creat in a different dir;
Code:
cfPtr = fopen( "C:\\somedir\\client.dat", "w" )
Dont forget the extra escape char
-
oops, yea i really forgot about the escape character...thnx