How can I appened to the top of a text file?

Results 1 to 4 of 4

Thread: How can I appened to the top of a text file?

  1. #1
    Join Date
    Dec 1969
    Posts
    18

    Default How can I appened to the top of a text file?

    I know how to append to a text file, but the new text is always added at the end. I want to append / add to the beginning cause I want the new stuff to show first. Is this possible? If so, any help in doing this would be greatly appreciated.

  2. #2
    Join Date
    Dec 1969
    Posts
    672

    Default RE: How can I appened to the top of a text file?

    Are you using the text file as a database and pulling back out of it in another page or are you just writing a text file?
    ________
    LovelyWendie99
    Last edited by Jay; 04-16-2011 at 01:32 AM.

  3. #3
    Join Date
    Dec 1969
    Posts
    18

    Default RE: How can I appened to the top of a text file?

    I am just writing a text file. I am setting this up so that other people on out intranet can add / edit content on a page without the Webmasters involvement (me). When they add a new article it will get appended to a text file, but when I include the text file into my page I want the newest info. at the top and the old stuff at the bottom.<BR><BR>--Bear

  4. #4
    Join Date
    Dec 1969
    Posts
    672

    Default RE: How can I appened to the top of a text file?

    I highly recomend using a database. Either access or excell.I think you can do it with a text file, if you have the right ODBC driver. Use the text file as a database.
    ________
    vapir oxygen vaporizer
    Last edited by Jay; 04-16-2011 at 01:33 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
  •