Results 1 to 3 of 3

Thread: Please Help..

  1. #1
    mash88 is offline Member
    Join Date
    Aug 2009
    Posts
    1
    Rep Power
    0

    Default Please Help..

    I want to know that how can I insert some text in the middle of a text file without deleting any previous contents of that file?:confused:

  2. #2
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Posts
    2,388
    Rep Power
    8

    Default

    How big is the text file?
    What have you done so far?

  3. #3
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    One way if the file isn't too big: read in your file, add the text to file's Strings held in memory, then write out the file.

    If the file is large, you may need to stream in the file and write it out at the same time (to another file, then delete the original and rename the new file).

Posting Permissions

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