Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_vb thread: search and replace word in a file


Message #1 by "prabodh sawant" <sawantprabodh@i...> on Sat, 20 Jul 2002 07:56:32
Hi

There is a command in VB called Replace, I assume you are reading your text
file in via something like FSO line by line, once you have a line read in
then check it using the replace method, if the word you looking for isn't
there nothing will change.

HTH
Duncan

>-----Original Message-----
>From: prabodh sawant [mailto:sawantprabodh@i...]
>Sent: 20 July 2002 07:57
>To: professional vb
>Subject: [pro_vb] search and replace word in a file
>
>
>Hi all,
>i want to search for a particular word in the particular file. and if that
>word found raplace it with another.
>pls help me
>
>---
>Visual C# - A Guide for VB6 Developers
>This book will make it easy to transfer your skills
>from Visual Basic 6 to C#, the language of choice
>of the .NET Framework.
>http://www.wrox.com/ACON11.asp?ISBN=1861007175&p2p0059
>
>


  Return to Index