[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [OT] C++ programming: keeping count of data items read from file

On Tuesday 06 May 2008, Ron Johnson wrote:
> On 05/06/08 12:50, H.S. wrote:
> > Robert Baron wrote:
> >> What is so terrible about counting the items as they come in?
> >
> > As I mentioned earlier, the issue is how do I count items read in
> > one line, or before the next EOL? Counting total items is not a
> > problem.
> >
> > Perhaps a different way to say this is, how do I detect if I have
> > reached an EOL while reading doubles from a file stream.
> Is this a binary file or a text file?

Text file.  He already specified that.


Reply to: