🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.web
Article #1222

How to replace text in a file

#1222
From: RS
Date: Sun, 04 Sep 2005 11:12
18 lines
1109 bytes
Hi,

How to replace text in a .txt file ?

for example :

this is my "myfile.txt" :

Hello "Jack",
How are you ?

i would like replace the word Jack by John

Hello "John"
How are you ?


Thanks ;)
Technical Details
Message-ID: <431ad5a0@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!newshub.sdsu.edu!cyclone.bc.net!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.newsfeeds.com!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,214f73fbc3dc2fa6,start
X-Google-Attributes: gidfeeec,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "RS" <rs.reloaded@wanadoo.fr>
Newsgroups: borland.public.cppbuilder.internet.web
Subject: How to replace text in a file
Date: Sun, 4 Sep 2005 13:12:12 +0200
Lines: 20
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2670
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670
NNTP-Posting-Host: 83.194.75.170
Message-ID: <431ad5a0@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1125832096 83.194.75.170 (4 Sep 2005 04:08:16 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!newshub.sdsu.edu!cyclone.bc.net!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.newsfeeds.com!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail