I'm trying to write a program that reads in multiple lines from a file...and I can't figure out how to set it to read in a specific number of lines...
Let's say one of the parameters passed to my program says that it wants to read in the first 7 lines from the file. How do i do that?
i know fgets reads in the first line...but where do i go after that?