Results 1 to 2 of 2


  1. #1
    Join Date
    Dec 1969


    Dees anyone know a way that new entries to a textbased database will be inserted in the beginning - and not appending in the end?<BR>Thanks for your HELP<BR>Erich

  2. #2
    Join Date
    Dec 1969

    Default RE:

    If you mean physically inserted into the beginning of the file, you could:<BR><BR>a) Read the entire text file into a var, then overwrite the text file, starting with the new &#039records&#039, followed by what you have in the var, or<BR>b) Create a new file, write the new &#039records&#039, then write the complete contents of your original file, then delete your original file, then rename the new file to the original<BR><BR>Both of these would require some good error handling so as not to lose the entire file (say, in the event of a full disk, write error, power outage, etc.)<BR><BR>

Posting Permissions

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