How do I detect line number while reading a file?
4 views (last 30 days)
per isakson on 15 Jun 2020
There is no function that takes the output of ftell() and returns the line number.
One has to keep track of the line number with user code. However, that is hard to combine with the use of fseek().