I'm writing a Windows program in VC++.NET and I want to use the fstream object. This worked fine as a console app.
This is a Windows Form Application so I could take advantage of the Drag and drop functionality.
I included the fstream file
and I want to sayCode:#include <fstream>
and it tells me that ''reader' is an undeclared identifier' and then tells me ''fstream' is an undeclared identifier!' What is wrong with it? Why does it work in a console app and not in a windows app? There are many more errors that I get, it seems many things that work just fine in a console app do not work in a Windows app. What's wrong?Code:fstream reader;