View Single Post
  #11   Spotlight this post!  
Unread 20-01-2010, 12:34
slavik262's Avatar
slavik262 slavik262 is offline
We do what we must because we can.
AKA: Matt Kline
FRC #0537 (Charger Robotics)
Team Role: Alumni
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Sussex, WI
Posts: 310
slavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to behold
Send a message via AIM to slavik262
Re: Search for text in a file

As I said, this is the "C way" to do it, but all the C libraries work perfectly well in C++. This won't put you at a disadvantage in any way. If you want to do it the "C++ way," just read your data into the buffer with ifstream. That's all you have to change.
__________________
Reply With Quote