Edit CFS FILE

I have .cfs file which I need to update one time only.  I need to change/update one string text for one of the CFS file, can you give me an example how to do that. i.g change string name from “Monday “ to “Tuesday”
Thanks
habteAsked:
Who is Participating?
 
sierratechsConnect With a Mentor Commented:
you can use vi editor.

Type this.

vi filename

:%s/Monday/Tuesday/g

:wq!
0
 
Gurvinder Pal SinghCommented:
check this one
http://www.java-samples.com/java/read_a_file_and_replace_a_string_freejavaprogram.htm

this one writes the result in a new file, you can modify it to replace the current file only
0
 
CEHJCommented:
You can use the Ant replace task
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.