Hello,
I am making a c program, and i was wondering if anyone knew of a way of counting the number of lines in a text file. I have files with numbers in it, but i dont know how many lines there will be, e.g
23, 23.4, 2.445
756, 5467, 56
...
...
However, I know that each line is termnminated using \n so by counting the number of times that '\n' is written i could find out the total number of rows.
Any ideas?
Thanks.

