Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
replace a string in a file using Java
Joined: Aug 23, 2008
Aug 23, 2008 14:38:00
Anyone know a simple way i can replace a
in a file using
[ August 23, 2008: Message edited by: nanoj ]
Joined: Aug 31, 2004
Aug 23, 2008 15:07:00
Welcome to JavaRanch!
After checking your private messages, take a look at the String class in the
, which has various replace methods.
Or is your question about file handling? If so, you will need to give us more information about what you've tried and where you're stuck.
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award."
I agree. Here's the link:
- if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
subject: replace a string in a file using Java
Editing html tags in a *.htm file
replacing a regex wild card
How to replace data in a file
Code to Modify the contents of a file
Replacing a word in a text file
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013