Hi,
I am using fgets() to read in a series of lines from a text file, then splitting this into tokens using strtok(). These tokens are then compared to an array of other tokens, and printed if the tokens match.
However, because of the carriage return at the end of a line, whenever the last token in the line is printed, a carriage return is also printed. Is there anyway that I can print the token but not the carriage return?
Thanks