Results 1 to 3 of 3

Thread: append text on top or read last line in text

  1. #1

    Thread Starter
    Member
    Join Date
    Sep 2002
    Posts
    43

    append text on top or read last line in text

    hi! is it possible to append text on top instead of last line in a textfile?

    or would it be possible to just read the last line of text without reading all the lines?

    thanks

  2. #2
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: append text on top or read last line in text

    no text is pretty much top to bottom left to right in terms of reading it in.

    If you want to add to the top of a textfile, what you need to do is read the whole file into memory (string variable) and then stick the text on the front of that, and write the entire string back to the file.

  3. #3
    New Member
    Join Date
    May 2005
    Posts
    9

    Re: append text on top or read last line in text

    im having trouble writing to a text document multiple times, im sorry for posting about my problem in your thread, but im stressed for time, i would appreciate any help... sorry again

Posting Permissions

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



Click Here to Expand Forum to Full Width