M
magix
Hi,
I got following to savefile into Output.txt, but how can I specify it to be
in specific folder/directory (not at the same directory as the executables?
Currently, it will generate the output.txt under the same directory as the
executables.
std::stringstream stream;
stream << "Output.txt" << std::flush;
std:fstream SaveFile(stream.str().c_str());
Example:
C:\Programming\test input.txt
it will generate output.txt in the same directory as where the executable
"test" located
If I want output.txt to be generated in C:\Programming\Output\ or at other
directory i.e C:\Output\, how to achieve that ?
Please help. Thanks.
Regards.
I got following to savefile into Output.txt, but how can I specify it to be
in specific folder/directory (not at the same directory as the executables?
Currently, it will generate the output.txt under the same directory as the
executables.
std::stringstream stream;
stream << "Output.txt" << std::flush;
std:fstream SaveFile(stream.str().c_str());
Example:
C:\Programming\test input.txt
it will generate output.txt in the same directory as where the executable
"test" located
If I want output.txt to be generated in C:\Programming\Output\ or at other
directory i.e C:\Output\, how to achieve that ?
Please help. Thanks.
Regards.