ostream

How to make ofstream file save in location where i want?
Specify the location with the filename.
1
2
3
ofstream MyFile( "C:/MyExistingDir/MyFilename.txt" );
//or
MyFile.open( "C:/MyExistingDir/MyFilename.txt" );
Thanks for help!
Topic archived. No new replies allowed.