question

how do you open a file whose name contains a backslash, such as:
temp\output.dat or c:\temp\output.dat
Use a forward slash.

IE: "C:/temp/output.dat".
ok,but can i use it like this-the name as a directory- in the fstream function when i call it?
Yes.

 
fstream myfile("C:/path/to/your/file/filename.txt");
Topic archived. No new replies allowed.