Windows Forms and C++ question

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 question.

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 it possible to use #include <fstream> to read/write to files like in console c++? I have tried using fstream and it works both the compiled and debug versions of the program. Please could somebody explain to me why this is and if I should still be doing this. Thank you.
Topic archived. No new replies allowed.