Why do I have to do the following if I want to open a file for reading
like
string filename = "data.txt";
ifstream ifs(filename.c_str());
I'd have thought that it would be quite elegant to do
ifstream ifs(filename);
instead!
--
http://www.munted.org.uk
Take a nap, it saves lives.