Unsolved what is qt equivalent code for fseek and SEEK_END flag of c ?
-
i want to get qt equivalent code for below statement
fseek(fp, -543, SEEK_END); -
@Qt-embedded-developer said in what is qt equivalent code for fseek and SEEK_END flag of c ?:
fseek(fp, -543, SEEK_END);
So you want to seek to 543 bytes before the end of the file.
QFile
does not have aSEEK_END
flag, but you can use the file size to calculate your final position (file.size() - 543
). Pass the position toQFile::seek()
.