Results 1 to 2 of 2
Like Tree1Likes
  • 1 Post By Norm

Thread: Edit conf file

  1. #1
    bikashlama is offline Member
    Join Date
    Dec 2011
    Kathmandu, Nepal
    Rep Power

    Default Edit conf file

    Hi I have a file named abc.conf :

    It's structure is like this:

    name = abc
    address = 123

    name = xyz
    address = 456

    If i want to edit the name of particular record like name 'xyz' of [102] to 'pqr', how to do it.

    Thanks in advance.

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Eastern Florida
    Rep Power

    Default Re: Edit conf file

    how to do it.
    Read the lines of the file into memory, make the changes you want to make to it and write the data back to disk.
    quad64bit likes this.

Similar Threads

  1. Updating conf file through java
    By nn12 in forum New To Java
    Replies: 8
    Last Post: 03-30-2011, 08:29 AM
  2. Delete and edit data in xml file using JSP
    By gurpreet.singh in forum JavaServer Pages (JSP) and JSTL
    Replies: 6
    Last Post: 03-10-2011, 09:07 AM
  3. Using .conf file URL check in java/servlet
    By vali786 in forum Advanced Java
    Replies: 1
    Last Post: 11-26-2010, 01:36 PM
  4. Read/edit/Write text file
    By Graupner1000 in forum New To Java
    Replies: 17
    Last Post: 08-25-2010, 03:04 PM
  5. Read and edit text file
    By VinTiger in forum New To Java
    Replies: 5
    Last Post: 05-14-2009, 02:18 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts