Hi All,
i am new to Qt.
i am creating the file in and logging some data to file every time some data is available.
but issue is once i reach max file size defined for file and new data is available then i have to move the first line and overwrite the data in line 1 with new data i am not able to move to first line and it is appending at the last always.
example:
once i reach the max file size and currently the cursor position is at the end of the file then cursor position should be moved to 1st line and new data has to be replace with data in 1st line after replacing the data the cursor should be move to 2nd line in the file.
to achieve this i am using seek() function to move to line but still i am not able to write data it is always
How can i move to first line and overwrite the data?
Thank you,
Regards,
Anamika
Bookmarks