Vincenzo
18th January 2009, 00:33
Hi,
How can I clear content of a file?!
For example a write to file.dat string ("how are you doing?"), after that i seek it in to begining, then i write some shorter string ("hello"), after that i get in file.dat something like: "hellore you doing?"
I checked the documentation of qt, but i don't understand very well to english, also tried a many version of potential code, but nothing worked for me :(
Further i'm interested of delete of some interval/distance of content of a file, for example if I want delete
from the (quint64) 10 to (quint64) 220
from (quint64) 10 to end of line?
Sorry for that stupid questions, but i played with it a long time without any succes. :( - also sorry for my english!
How can I clear content of a file?!
For example a write to file.dat string ("how are you doing?"), after that i seek it in to begining, then i write some shorter string ("hello"), after that i get in file.dat something like: "hellore you doing?"
I checked the documentation of qt, but i don't understand very well to english, also tried a many version of potential code, but nothing worked for me :(
Further i'm interested of delete of some interval/distance of content of a file, for example if I want delete
from the (quint64) 10 to (quint64) 220
from (quint64) 10 to end of line?
Sorry for that stupid questions, but i played with it a long time without any succes. :( - also sorry for my english!