|
Boost : |
From: Darin Adler (darin_at_[hidden])
Date: 2001-10-26 17:50:40
on 10/26/01 3:42 PM, Daryle Walker at darylew_at_[hidden] wrote:
> When you use getline, either from an istream or a string, how do you know if
> the line ended from a line break or an EOF?
Call stream.eof(). If it returns true, the line ended from an EOF, if false,
from a line break.
-- Darin
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk