Click here to Skip to main content
15,887,083 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have seen this *String Replace and File Handling library* but I dont know how to use that source, because it was in C-sharp.

I need the same requirement, if possible can you provide me the source in Java?


Thanks in advance,
madhavan
Posted
Updated 13-Oct-10 9:20am
v2
Comments
Dalek Dave 13-Oct-10 15:20pm    
Minor Edit for Grammar.
Richard MacCutchan 13-Oct-10 18:05pm    
Unless this already exist in Java then it is very unlikely. Try a Google search for the features you are interested in.
Nagy Vilmos 19-Oct-10 8:50am    
If you mean this - http://www.codeproject.com/KB/string/TextReplaceIO.aspx - then your only hope is to convert it yourself or look for something similar.

1 solution

I've looked at the code in that project and to be brutal, you'll be better off writing your own library.

Your queistion is too broad for a Q&A answer, so I'll help by giving some pointers:

Decide up front what you want.
If it is to amend file content then look at a StreamReader or StreamWriter that will take the stream and apply rule based conversions.

If you need to search/replace a lot of text in strings DO NOT USE String objects. Create a StringBuilder, manipulate then convert back. All the fiunctionality you need should be native in either String or StringBuilder.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900