saving data to a file

Results 1 to 2 of 2

Thread: saving data to a file

  1. #1
    Join Date
    Dec 1969

    Default saving data to a file

    I have this text file, I have so it reads the data in it.<BR>around twenty lines long. But I would like the user to be able to edit file( I got the done), and save it back to the file.<BR><BR>How would I go about making it save back to its self.<BR>I guess if possible I would like it to delete the info and re-save the info in to the same file.<BR><BR>thanks<BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: saving data to a file

    Put the data you read from the file into a textarea:<BR><BR>&#060;TEXTAREA Name="theText"&#062;&#060;% = InFile.ReadAll %&#062;&#060;/TEXTAREA&#062;<BR><BR>Put that in a form.<BR><BR>Submit the form.<BR><BR>In the page submitted to, write all the contents of the textarea [ from Request("theText") ] to the file.<BR><BR>You have NO CHOICE but to "delete the info and re-save...". If you simply open the file for writing, that&#039;s what happens, automatically!<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