[SOLVED] ftell() and fseek()
-
I have a code in C and I'd like to translate it to qt;
@FILE * f;
ftell (f); @
as is reflected in QT?
@fseek (f, key, SEEK_CUR) @
as is reflected in QT? -
Have a look at peek(), seek() and pos() at
http://qt-project.org/doc/qt-5/qfile-members.html . -
Hi.
ftell (f) --->QIODevice::pos();
fseek (f, key, SEEK_CUR)--->bool QIODevice::seek(qint64 pos) [virtual]hope this helps.
-
thanks sirop and lamSumit