Returns a specified line from a file
Updated 13 Feb 2007

View License

Reads a specific line from a file. Extends upon fgetl by allowing the user to specify the desired line number.

Cite As

Chris Cannell (2024). getLineFromFile (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2006b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on File Operations in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes