PDA

View Full Version : qfile seek



SirJonas
3rd November 2016, 14:26
Hi i have one document in word. And i want this document to separate in two documents with the text i wrote. I was trying to do a seek but was unsuccesfully. Some way to solve this?
I tried to do this:
file1.seek(servidor.size() - sizeotherfile );
newfile.write(servidor.read(sizeotherfile));

Lesiok
3rd November 2016, 14:37
What does it mean "unsuccesfully" ?

SirJonas
3rd November 2016, 14:45
not work normally i can seek files but now i can't i dont know why ;(

jefftee
4th November 2016, 00:52
Is servidor.size() smaller than sizeotherfile by chance? What happens to your code when that happens?