• Post Reply Bookmark Topic Watch Topic
  • New Topic

modifying file content

 
ajse ruku
Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Joe Ess
Bartender
Posts: 9361
11
Linux Mac OS X Windows
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!