a kinda newbie here.
I've done a simple little program that reads a text file and counts the
number of lines and words.
I had a heck of a time getting it to count properly when I finally
discovered the problem was not my coding, but the istream altering the
incoming text.
What I was doing was checking each incoming character (seekg) and
comparing it to a 'h0a' . What I found was that text files end their lines
with a '0d' (CR) and a '0a' (line feed). However, it was reading them off
the istream as both being '0a'. It had changed the CR.
My questions are, Is there any other little istream quirks like this I
should be aware of? And is there some way to set the stream to not alter
what is read?
TIA
-doh