m3rlin
1st April 2013, 10:18
Hi,
I am writing to and XML-file using QTextStream.
After I flush the stream I check for QTextStream::Status.
I connected a SIGNAL/SLOT to catch possible errors.
What I can't find in the QTextStream class documentation or online info on the QTextStream (or any Textstream) is what happens when a READPAST END, OR READ CORRUPT DATA error occurs.
Does QTextStream attempt another READ of the data (x-times), and/or does QTextStream report and then continues reading regardless of found errors and finally reports a WRITEFAILED error? Can anyone point me to some gut functionallity documentation on textstreams - QTextStream in particular?
I remember from ancient DOS behavior that there was a cycle reading from drive x: (after 8 tries it would give you the abort/fail/retry message) I would like to implement something similar for an Install program that I am writing - preventing an immediate rollback when a QTextStream Error occurs. But without knowing what ReadPast and/or Read Corrupt Data actually does...
Thx in advance.
I am writing to and XML-file using QTextStream.
After I flush the stream I check for QTextStream::Status.
I connected a SIGNAL/SLOT to catch possible errors.
What I can't find in the QTextStream class documentation or online info on the QTextStream (or any Textstream) is what happens when a READPAST END, OR READ CORRUPT DATA error occurs.
Does QTextStream attempt another READ of the data (x-times), and/or does QTextStream report and then continues reading regardless of found errors and finally reports a WRITEFAILED error? Can anyone point me to some gut functionallity documentation on textstreams - QTextStream in particular?
I remember from ancient DOS behavior that there was a cycle reading from drive x: (after 8 tries it would give you the abort/fail/retry message) I would like to implement something similar for an Install program that I am writing - preventing an immediate rollback when a QTextStream Error occurs. But without knowing what ReadPast and/or Read Corrupt Data actually does...
Thx in advance.