This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
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
Author

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 ;
}


thanks..


We work in mud to reach sky ..
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8915
    
    8

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
Greenhorn

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

Joined: Oct 29, 2001
Posts: 8915
    
    8

Srinu found his way to the correct forum on his own.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: replace String from a file