From TextArea to .txt file

Results 1 to 2 of 2

Thread: From TextArea to .txt file

  1. #1
    Odacello Guest

    Default From TextArea to .txt file

    This should be easy, but...I have read from a .txt file into textarea and now I want to edit that text and save to the .txt file. How can I do this?<BR><BR>Thanks!<BR><BR>Odacello

  2. #2
    Join Date
    Dec 1969

    Default RE: From TextArea to .txt file

    Try this<BR><BR>StrText=Request.form("TextArea")<BR><B R>set filesys=server.createobject("scripting.filesystemo bject")<BR>set txtfile=filesys.CreateTextFile("C:My DocumentsMyFile.txt")<BR>txtfile.Write(StrText)<BR >txtfile.close<BR>set filesys=Nothing<BR>set txtfile=Nothing

Posting Permissions

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