readlog

Rapidly parse information out of large log files (or any text file)

You are now following this Submission

READLOG is a wrapper function for textscan. It quickly parses a text file line-by-line with pattern matching as it goes, and will return whole lines or matched patterns based on the options you set. It can be used to efficiently parse specific lines from very large log files, but it's also a fast way to import text from just about any file source.

Cite As

Austin Fite (2026). readlog (https://in.mathworks.com/matlabcentral/fileexchange/96364-readlog), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.1

Fixes incorrect line numbers returned when reading blocks that do not match the provided pattern.

1.0.0