This behaved badly when confronted with windows CR+LF end of lines. Using fgets() left a stray CR at the end of the returned string.
This behaved badly when confronted with windows CR+LF end of lines. Using fgets() left a stray CR at the end of the returned string.