end of line...
I am attempting to write a program that read characters from a file until the end of a line. However, my while loop refuses to stop. Does anyone know how I can test a single character to see if it is at the end of the line. In case it matters, I'm using Borland C++ 5.0
if (c == '\n') ...
or if this is C++ Builder & you're using AnsiString
if (astr[n] == '\n')
also in Windows, text files are usually end with line feed ('\n') and carriage return pairs ('\r').