h5nguye 0 Newbie Poster

Hi experts,
I want to manipulate a line of string in a text file and save the text file as another name.
For example:
text file name: 110.txt
text file contains a string of number: 110

I want to search for that string "110" and increment +1 to 111 and save the text file to 111.txt
So it goes on like this:

text file: 112.txt, text file contains a string of number: 112
text file: 113.txt, text file contains a string of number: 113

It's an increment of 1 to both the string in the file and the new name for text file. I want to have a 100 files saved. Does anyone know how to do this? please provide me the code to read, write and manipulate the text file.

Sincerely,

Chris.