   help with file stream
  how can i go to a certin point in a text file and start over writing tell another point?Also how to i start reading from a text file at a sertin keyword point?   
  Use ostream member function seekp, and istream member function seekg.If you want to look for a given token, there are no real solutions though. Depending on the complexity of your task, you could: read in space-separated tokens until you find a keywordor load the entire stream into a string and use string search functionsor use a lexer generator, such as flex;  for exampleI need to read to string testwhen string test is found start loading data if ; is found stop loadingalsoI need to read to string testwhen string test is foundstart over writing dataI read seekp and what I can tell is it goes to a point and not a string so I am not sure thata is what I need.   ;  Use the fstream object and open it in ios::read | ios::write state   ;  what I need to know how to do is seek to a string start rading file and finsh at a string.   