Hi!
I am trying to read a file and when found a certain word I would like to add a line or two from that point on.
How do I that ??
When I tried to do this, it reads and write nothing to the file..
Do I use??
Set fso = CreateObject("Scripting.FileSystemObject")
Set objRF = fs
penTextFile("C:\ReadWrite.xml",8,True)
Example)
ReadWrite.xml
<Name>
<Last>
Smith
</Last>
<First>
John
</First>
</Name>
to
find </First> and add <Middle>James</Middle>
<Name>
<Last>
Smith
</Last>
<First>
John
</First>
<Middle>James</Middle>
</Name>
How do I read and write to same file??
Thanks...
I am trying to read a file and when found a certain word I would like to add a line or two from that point on.
How do I that ??
When I tried to do this, it reads and write nothing to the file..
Do I use??
Set fso = CreateObject("Scripting.FileSystemObject")
Set objRF = fs
Example)
ReadWrite.xml
<Name>
<Last>
Smith
</Last>
<First>
John
</First>
</Name>
to
find </First> and add <Middle>James</Middle>
<Name>
<Last>
Smith
</Last>
<First>
John
</First>
<Middle>James</Middle>
</Name>
How do I read and write to same file??
Thanks...