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...
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...
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.
oh i didnt notice that while writing xD
thank you!