• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 516
  • Last Modified:

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
0
habte
Asked:
habte
1 Solution
 
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
 
sierratechsCommented:
you can use vi editor.

Type this.

vi filename

:%s/Monday/Tuesday/g

:wq!
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now