Truncate a file under mac with Qt
-
"QFile::resize() ":http://doc.qt.nokia.com/4.7/qfile.html#resize (or its static equivalent) should be your friend.
-
Hello again
i have write this :
@QFileInfo info_file(myfile);
long long lgqt = info_file.size();
QFile mfile(nome_f);
@
if i insert a breack point when o try to go to the line :
long long lgqt = info_file.size(); i get the error :
cannot continue debugged process:
Warning:
cannot inster breackpoint -101
Error accessing memory address xxxxxxx input/output error.
But if i insert the breackpoint for example on the line "QFile mfile(nome_f);" e get no error and also i get the file size
Why?Luca