This is little bit complex question. First, you need to read the textfile, find string that can be transformed to integer and add number to it. After that, you need to rewrite existing document. I think there is no easy way, because you are mixing strings with integers (of course, all of those characters are chars after all, but only "12" is competetive to add number to it).
Maybe, you can try with function "replace", but it can replace only characters, and it doesn't have logic of adding number to number.
Example:
Dim str1 as New Streamreader
str1.Load("...")
replace(str1,"2", "3")
P.S. I don't know is this going to work, try it!
|