Solved

Edit CFS FILE

Posted on 2010-09-22
3
480 Views
Last Modified: 2012-06-27
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
Comment
Question by:habte
3 Comments
 
LVL 40

Expert Comment

by:gurvinder372
ID: 33732269
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
 
LVL 86

Expert Comment

by:CEHJ
ID: 33732386
You can use the Ant replace task
0
 
LVL 1

Accepted Solution

by:
sierratechs earned 500 total points
ID: 33739137
you can use vi editor.

Type this.

vi filename

:%s/Monday/Tuesday/g

:wq!
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

785 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question