PDA

View Full Version : go to file's begin



jaca
19th September 2009, 03:20
Hi all,

How do I return to the beginning of a file? Is there any function QIODevice::at(), as atBegin()?

Thanks,
Jeferson.
Qt4.5

SudaNix
19th September 2009, 05:59
seek(0);

http://doc.trolltech.com/4.5/qiodevice.html#seek