# fstream help!

This is a discussion on fstream help! within the C++ Programming forums, part of the General Programming Boards category; How can i specify a path for the text file i want to use to save or load data? something ...

1. ## fstream help!

How can i specify a path for the text file i want to use to save or load data?

something like this?
ofstream outFile("C:\text.txt");
cause when i do that, outFile == false...

2. You probably don't have a tab character (\t) in your filename. To get an actual backslash in a string literal you need two \\ in a row.

3. oh i didnt notice that while writing xD
thank you!