Boost logo

Boost Users :

From: Dave (better_cs_now_at_[hidden])
Date: 2006-08-30 19:02:33


Hello all,

I would like to programmatically search a (large) binary file for a
particular text string and get a boolean result back - either the string
appeared or it did not.

I imagine whatever I end up implementing will be platform-independent, but
I'll state anyway that I am using Visual C++.

My first thought was to use regex_search and pass it two stream iterators,
one pointing to the beginning of the file and one representing the end of
the file. Alas, this won't work since regex_search requires bidirectional
iterators, which stream iterators are not.

I would appreciate any suggestions as to how I can most efficiently and
elegantly achieve my goal. Thank you!

Dave


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