Re: fstream ?
From: Howard (alicebt_at_hotmail.com)
Date: 09/30/04
- Next message: John Harrison: "Re: Pointer to class or object"
- Previous message: Karl Heinz Buchegger: "Re: Problem with volatile modifier"
- In reply to: Karl Heinz Buchegger: "Re: fstream ?"
- Next in thread: Ron Natalie: "Re: fstream ?"
- Reply: Ron Natalie: "Re: fstream ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 30 Sep 2004 17:04:09 GMT
"Karl Heinz Buchegger" <kbuchegg@gascad.at> wrote in message
news:415BF88E.F62E6072@gascad.at...
>
> Best is often: read with getline, and look at the last character in the
string.
> If it is a '\n', discard it.
>
I've got a question on comparing a char against '\n'. Since on some
systems, '\n' is represented by #13#10 (a CR/LF pair), what happens when you
compare a char with it? Is there some internal mechanism that actually
compares two bytes instead of just one?
-Howard
- Next message: John Harrison: "Re: Pointer to class or object"
- Previous message: Karl Heinz Buchegger: "Re: Problem with volatile modifier"
- In reply to: Karl Heinz Buchegger: "Re: fstream ?"
- Next in thread: Ron Natalie: "Re: fstream ?"
- Reply: Ron Natalie: "Re: fstream ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|