3
Reply

ofstream equivalent in C#

david.khoy

david.khoy

Nov 11 2003 7:07 PM
4.5k
Hi everyone, I have to convert the following C++ lines in C# : ofstream ParamFile("../filename.txt", ios::trunc); ParamFile << a_variable; ParamFile.close(); I have no idea of how to write it in C#. I also wonder how you start a Java program via C# code. With C++, it was simply : system("nameofthefile.bat"); Thanks for reading this post.

Answers (3)