jQuery in Action, 3rd edition
The moose likes I/O and Streams and the fly likes replace String from a file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "replace String from a file" Watch "replace String from a file" New topic

replace String from a file

Anas El-Abboud
Ranch Hand

Joined: Dec 12, 2003
Posts: 31
hello Friends ,
how can i do a function replace a String with another String from a file
something like this :

public FileWriter strngRplc(FileReader fr,String str1,String str2){
FileWriter fr ;
return fw ;


We work in mud to reach sky ..
Joe Ess

Joined: Oct 29, 2001
Posts: 9138

This is a pretty common question in this forum. I like Stan's answer in this topic.

[How To Ask Questions On JavaRanch]
srinu rao

Joined: Jan 06, 2005
Posts: 2
what is temporary servlet?
what are the uses of a temporary servlet?
Joe Ess

Joined: Oct 29, 2001
Posts: 9138

Srinu found his way to the correct forum on his own.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: replace String from a file
It's not a secret anymore!