In Visual Studio 2010, the following code works, even with the /Za (struct ANSI) compiler flag.
string name = "input.txt";
ifstream fin;
fin.open(name);
All the documentation I can find seems to indicate that you have to pass a C-string to ifstream::open. Is this really ANSI now, or is it a Microsoft extension, and a problem with the /Za
flag?
Thanks,
Saul