View Single Post
  #1   Spotlight this post!  
Unread 10-01-2010, 20:03
karatekid's Avatar
karatekid karatekid is offline
Registered User
AKA: Cole
FRC #0662 (Rocky Mountain Robotics)
Team Role: Programmer
 
Join Date: Nov 2009
Rookie Year: 2009
Location: Colorado Springs, Colorado
Posts: 120
karatekid has a spectacular aura aboutkaratekid has a spectacular aura aboutkaratekid has a spectacular aura about
Question Search for text in a file

Is there any way to search for text in a file (not part of the program) and then read the following text until it sees a certain line of text. For example:
Hello World. How are you today? I am fine.
is the text file, and I want the program to search for 'World.' then read the text (and use it, say as an output) and stop when it sees 'I am', without knowing what is between. Thank you.
__________________
YOU JUST LOST THE GAME!
Reply With Quote