Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to find a string in a textfile?

Status
Not open for further replies.

ultra2

Programmer
Jun 26, 2005
46
HU
I need to insert a specified string after an other specified string.

const STR1 = "blabla"
const STR2 = "something"
const FILENAME = "something.txt"

how to find STR1 in the FILENAME textfile?
how to insert STR2 after STR1?


 
There are a few FAQs in the FAQ section of this forum that would help you. I'd suggest starting there and posting some code when you hit a problem.

[red]"... isn't sanity really just a one trick pony anyway?! I mean, all you get is one trick, rational thinking, but when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick[/red]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top