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

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

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