Hi,
How to force a QTextStream to point the EOF when its in the middle of file?
Hi,
How to force a QTextStream to point the EOF when its in the middle of file?
You can use QTextStream::seek() with QTextStream::device() to query for the device it operates on and QIODevice::size() to find its size. Be aware that this will only work for devices that are seekable! It might be easier to simply close the device behind the stream to obtain a similar effect.
Bookmarks