C Programming Tutorial : fgets Function - FriedSpace.com
The function we will use to actually read in lines from our file is the fgets function. We used it before with the stdin stream to read a string of data from the keyboard into a buffer. This time, instead of using stdin as our input stream, we will use ou...