develooper Front page | perl.beginners | Postings from December 2002

Substitute a word in a file

Thread Next
From:
George P.
Date:
December 4, 2002 21:18
Subject:
Substitute a word in a file
Message ID:
Pine.LNX.4.33.0212051040280.2560-100000@jupiter.cmie.ernet.in

Hi,

I am looking for a way to open a file in read/write mode,
seek to a particular position and then substitute a word
with another word.

The file is a simple text file.

Does anyone know how to do this ?

Thanks.
George P.




Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About