wood burning stoves 2.0*
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: 8836

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: 8836

Srinu found his way to the correct forum on his own.
I agree. Here's the link: http://aspose.com/file-tools
subject: replace String from a file
Similar Threads
BufferedWriter, PrinterWriter etc
Copy from one file to another
fileREader and FileWriter
Remove Line from Text File
modifying file data