But are you sure you should be using QDataStream at all?
But are you sure you should be using QDataStream at all?
Well, at least it makes my data unreadable.
If the reading in general would fail, then I would use something different. However, it is working for one of my programs,
so it can't be that wrong to use QDataStream.
The error has to be somewhere else. I'll try to post a more detailed example later.
:: Arch Linux KDE 4.9
It's getting interesting.
When I do;
The entire file is being printed !!!Qt Code:
for (int i = 0; i < size; i++) { while(!in.atEnd()) { in >> temp; qDebug() << temp << endl; } }To copy to clipboard, switch view to plain text mode
I have to use two loops to get all data. How does that come ??!
It's really strange, because it's working for the other program with only one loop.
:: Arch Linux KDE 4.9
Bookmarks