I have a program that reads in a file, stores this into a vector<string> lines construct, but I am wanting to be to perform some kind of search / replace functionality, I have looked into string.find using npos but I am unsure how to go about this.
Not sure how I would handle if the 'replace' text is longer than the original text, how would i handle that...
How would I be able to find all occurances or the word (and their start and end position on the line) and then how to replace it.
Any assistance or links to resources would be of great help.
P.S: I am using Ubuntu Linux as my OS... (Just so you know)