PDA

View Full Version : Qfile question



dreamer
3rd May 2008, 14:20
I instantiate a Qfile object that handles my I/O operations.
I open my file with (QIODevice::ReadWrite|QIODevice::Truncate) flags.
I'd like that every time i access to the file, it will be empty, also if it has some text inside.
I thought to obtain this behaviour with QIODevice::Truncate, but it doesn't!

bunjee
3rd May 2008, 16:32
Should be working, can we see some code ?