Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_vb thread: Replacing strings in files


Message #1 by "Nicolas Raitman" <nicolas@b...> on Fri, 16 Aug 2002 20:21:48
> you have to..

open the file
read the line
replace the text on the line with the new text
save the line
read all the rest of the file
save all the rest of the file..

there's no other way..

in which part do you need help???
Gonzalo Martin Bianchi
Desarrollo de sistemas de cuenta corriente tributaria
Hipolito Yrigoyen 370
Entrepiso B pasillo 600 oficina 5
4347-3181
----- Original Message -----
From: "Nicolas Raitman" <nicolas@b...>
To: "professional vb" <pro_vb@p...>
Sent: Friday, August 16, 2002 8:21 PM
Subject: [pro_vb] Replacing strings in files


> Hi to all,
> I am having a big file in which I have to replace a word in the first 
line
> of it. How can I replace a word in a text string which is inside that
file?
> I know how to open, read a line, write a line and close the file. However
> I do not know how to change it either inside that file or replace the
line.
> Thanks,
> Nicolas
>
> ---
> 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
>
> ---
> Change your mail options at http://p2p.wrox.com/manager.asp or
> to unsubscribe send a blank email to 

Hi to all,
Mainly, I wanted to be sure that there was no other way rather than the 
one you are telling me. My problem is with THAT process. The file is too 
big to read a file and write it to another.

  Return to Index