?
Solved

Edit CFS FILE

Posted on 2010-09-22
3
Medium Priority
?
509 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 40

Expert Comment

by:Gurvinder Pal Singh
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 2000 total points
ID: 33739137
you can use vi editor.

Type this.

vi filename

:%s/Monday/Tuesday/g

:wq!
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
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 step-by-step guide to install VisualVM launcher in eclipse.
Suggested Courses
Course of the Month13 days, 10 hours left to enroll

801 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