Hi I just recently started learning about using the windows form application for C++. I am using Visual Studio 2010 and I have came across this problem. For instance, I am trying to read and write to a text file. Many guides suggest using StreamWriter^ and using namespace System::IO; to read/write to a file.
My question is why can't I use #include <fstream> to read/write to files like in console c++? I have tried using fstream in the windows form application and it works. Both the compiled and debug versions of the program works. Please could somebody explain to me why this is and if I should still be doing this. Thank you.