PDA

View Full Version : file read & write help....



aj2903
17th November 2008, 10:33
I want to simple program to read & write a simple text file.
Is there any example on file reading and writing a simple textfile.

I don't where to start.
Pls help

caduel
17th November 2008, 11:58
something like that should work:

QFile input(filename);
if (!input.open(QIODevice::ReadOnly)) handle_error_somehow();
QTextStream in(&input);
// now read from in

HTH