Hi all,

        Could anyone please tell me the easiest way to replace specific
strings in a text files by specific values? Suppose that I have the file
that contains the strings XXX1, XXX2, XXX3 in the file ( those strings may
not be in order and each could be at any position in the file) and want to
replace each of them by a different value. Is there any special technique
to do that, or I have to read the file line by line to the StringBuffer
object, then do the comparision and replace?

TIA,
Binh.

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to