Close the file, then reopen it, or create a new QTextStream each time you want to read it. QTextStream caches the file contents on the first readAll(), so when you ask for it again, you get the same thing. You could try calling seek( 0 ), but that still might not empty the cache.




Reply With Quote
Bookmarks