hi,
sorry for kinda flooding these forums with C questions these past few days, ive made a lot of progress on my assignment and im actually understanding C better now!
anyway here's one: im using fgets() to return lines of a text file one by one, thing is when it reaches the end of the file it just keeps returning a blank line every time... it works perfectly then it just prints "\n" pretty much and does this over and over so i need to identify when it has reached EOF and not let it print anything else afterwards, know what i mean?
thanks!
sorry for kinda flooding these forums with C questions these past few days, ive made a lot of progress on my assignment and im actually understanding C better now!
anyway here's one: im using fgets() to return lines of a text file one by one, thing is when it reaches the end of the file it just keeps returning a blank line every time... it works perfectly then it just prints "\n" pretty much and does this over and over so i need to identify when it has reached EOF and not let it print anything else afterwards, know what i mean?
thanks!