modifying file content

Hi all,

In my application there is file(say test.txt).The requirement is to modify the content of the file.For example every occurance of a particular string (say "tomcat_home")in the file should be replaced by some string (say "http://localhost").What is the best way to do this through java program.Please express your views.

with regards,

ajse

[371 byte] By [ajseajse] at [2007-11-26 12:17:37]
# 1
What ideas do you have?
zadok at 2007-7-7 14:55:24 > top of Java-index,Archived Forums,Socket Programming...