File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of Spring in Action this week in the Spring forum!
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: 8927

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

"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[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: 8927

Srinu found his way to the correct forum on his own.
I agree. Here's the link:
subject: replace String from a file