A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
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:
subject: replace a string in a file using Java
Replacing a word in a text file
replacing a regex wild card
Code to Modify the contents of a file
How to replace data in a file
Editing html tags in a *.htm file
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015