MATLAB: How to read only part of file – file size increasing on the fly

filehandling fieslarge file

Current text-formatted log file is being saved constanly and added data is added to end of the file growing files size.
Content is being saved in chunks of data. I'd like matlab to only read end part of the file because file sizes eventually can reach high and reduce performance.
I have the old file size saved and the new file size also.

Best Answer

fseek() to the position you want to start reading from.