Login | |
|
 |
RE: Replace text in file between known text? - 6/24/2008 2:42:01 AM
|
|
 |
|
| |
ebgreen
Posts: 5041
Score: 31
Joined: 7/12/2005
Status: offline
|
You didn't ask if anyone knows how to do this. You asked for code. I don't have the code laying around to do exactly what you want. I do know how to write that code. So what exactly are you asking for?
_____________________________
"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm http://www.visualbasicscript.com/m_47117/tm.htm
|
|
| |
|
|
|
 |
RE: Replace text in file between known text? - 6/25/2008 12:28:27 AM
|
|
 |
|
| |
ebgreen
Posts: 5041
Score: 31
Joined: 7/12/2005
Status: offline
|
So, to open a file and work with it search the forum for these terms: FileSystemObject .OpenFile .ReadLine .ReadAll For the replacement there are several options and you will have to decide how you want to do it. These terms will help you get started: Replace InStr Regular Expression Regexp
_____________________________
"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm http://www.visualbasicscript.com/m_47117/tm.htm
|
|
| |
|
|
|
|
|