using from file

A question: when I use this code:

........fstream testfile;"New Text Document.txt");

I have no problem. But when I use it:

........fstream testfile;"c:\New Text Document.txt");

And when I type an adress
It can't open the file.
Do you know what is problem?
Last edited on
you need to slash twice, so drink lots 8-)"c:\\New Text Document.txt");

Last edited on
i use it.
but I have my problem yet.
which windows version u r using?
im using win 7. I couldnt create a text file in c drive.
Maybe you need to specify the file is to be opened in write mode?

see :

Topic archived. No new replies allowed.