How can I read a text file like this for example:
And count the number of lines in the file?
My idea is:
while(fgets ! eof)
read a line
I guess what I'm getting at is, what does fgets return after it reads one line and how can you set it in a loop to read an entire file? Thanks in advance for any advice