PDA

View Full Version : QFile -> std::fstream



bhs-ittech
9th June 2008, 10:13
I'm not sure if it belongs here or in general programming but here it goes.

Is there a way to get a std::istream/std::ostream from a QFile object, or anything
provided from a QFile object?

Or should I only store the filename and open it as a std::fstream?

I need the std:istream/std::ostream objects for an external library.

mcosta
9th June 2008, 11:02
Or should I only store the filename and open it as a std::fstream?


I'm not sure this is the ONLY way but I think this is the BETTER way.