-
files
Im pretty shure this is a windows question, so im asking it here. Is there a way to save a fstream file in a different file folder than the program?
for example say my program creates a file called "the.txt", and the program is in C:\documents and settings\c++. how could i save it in C:\documents and settings\the ?
-
Pass the directory when you create the file... like "C:\\Documents and settings\\the.txt" to either the constructor or the call to open().
Nothing Windows specific about this question... fstream is C++, post (next time) in C++.