Good Evening,
I'm trying to print information to a file with some basic information about a group of people, but when I use the fprintf function and add the \n or \r to the end of the format, the information is not printed on a new line in the text document I have opened. It is instead printing the information without spaces, on the last line of the document to the right of the old information.
I'm running on Windows Vista Ultimate with cygwin in C.
This isn't a homework assignment, I promise.
One other thing, is there any way to scan the number of lines in a text file? I currently have a function that just scans in every line until it reaches the EOF and a variable keeps count of the number of times of a successful fscanf.
Cheers,
-Dirk