file problem

Recommended Posts

Sync Views    139
How can I work with files outside the working directory because this seems to not work...
std::fstream File1("H:\test.txt");



Share on other sites
SiCrane    11839
"H:\\test.txt"

What you had would use \t as an escape; i.e. puts a tab in the middle of the file name.