How do I detect line number while reading a file?
Show older comments
Is there a way to detect the line number while reading a text file? ftell will give a pointer in the file, but not the line number.
Thanks
Accepted Answer
More Answers (0)
Categories
Find more on Low-Level File I/O in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!