×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Feb 2009
    Posts
    7

    Exclamation how to insert data into a particular position in txt file

    pls help..

    i need to replace a data in txt file in a particular position.

    but when i tried it only replaces at the begning of the file..

    can someone help me pls..

    ths i advc...

  2. #2
    Nokia Developer Champion
    Join Date
    Sep 2008
    Location
    Noida, U.P.
    Posts
    1,330

    Thumbs up Re: how to insert data into a particular position in txt file

    Hi,
    for replace any text in a txt file u can follow following points..

    1. Read all the contents of txt file in a buffer like StringBuffer.
    2. delete that txt file.
    3. Do manipulation of data in buffer.
    4. create new file with the same name as before.
    5. copy the altered data to that file.

    Hope this will help u somewhile..
    thanks,
    jitu_goldie..

    KEEP TRYING..

Similar Threads

  1. Replies: 1
    Last Post: 2005-05-26, 14:22
  2. write and read a TInt data from the file
    By billqu in forum Symbian
    Replies: 2
    Last Post: 2004-12-27, 15:10
  3. Nokia Image Converter
    By davidpurdie in forum General Development Questions
    Replies: 0
    Last Post: 2004-02-18, 15:31
  4. Replies: 0
    Last Post: 2002-06-10, 12:24

Posting Permissions

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