Reading files in console

Given a file, prints out successive lines of file when user presses enter, or exits on entering 'q'.

You are now following this Submission

Takes a path to a file. Each time the user enters anything (other than 'q') displays the next line from that file. Useful for quickly checking the contents of various files without having to find and open them.

Cite As

Danielle Saunders (2026). Reading files in console (https://www.mathworks.com/matlabcentral/fileexchange/52829-reading-files-in-console), 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.0.0