ofstream equivalent in C#
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.