Boost logo

Boost Users :

From: Aljaz (aljaz.fajmut_at_[hidden])
Date: 2007-03-15 18:06:11


Hello

I'm having difficulties understanding some concepts of iostream filters.

What I want to do?
I want to have a filter (filter/line.hpp) that will split input (file) to
lines.
I've looked at class example but I still dont know how to use it for input
(source) file.

When I put filter on source stream, what is the best way to read it?
I noticed most of examples use std::getline which gets line by default, but
I decided to go for boost iostreams line filter because I thought it would
be faster than getline approach.. Is this wrong?
If not, how should I read file using line filter stream to get best
preformance?

Thanks for help


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net