Home All Groups Group Topic Archive Search About

Text File Manipulation

Author
20 Jul 2006 4:21 PM
Frank
Not Sure if this is the correct category, but here goes.
I would like to open up certain text files in a folder. I would then like to
change
a particular string to something else. Is there a way to update a record while
reading through the text file, or, can I issue a REPLACE command to the
entire file.

I'd like to avoid reading the file, making the change and outputting to
another file.

Thanks for any advice.

Author
20 Jul 2006 7:36 PM
Kevin Spencer
It all depends on how big the file sare. You can read them into a string if
they're not too large.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Chicken Salad Alchemist

What You Seek Is What You Get.


Show quote
"Frank" <Fr***@discussions.microsoft.com> wrote in message
news:8F57D2E1-FEEC-4441-9AFB-9FFC85DD0984@microsoft.com...
> Not Sure if this is the correct category, but here goes.
> I would like to open up certain text files in a folder. I would then like
> to
> change
> a particular string to something else. Is there a way to update a record
> while
> reading through the text file, or, can I issue a REPLACE command to the
> entire file.
>
> I'd like to avoid reading the file, making the change and outputting to
> another file.
>
> Thanks for any advice.

AddThis Social Bookmark Button