ASP-File Handling

Results 1 to 2 of 2

Thread: ASP-File Handling

  1. #1
    hamsa Guest

    Default ASP-File Handling

    how to create html file on the fly<BR>how to open htmlfile<BR>how to replace text entered by user through html form<BR>into the htmlfile<BR>

  2. #2
    Chris Willey Guest

    Default RE: ASP-File Handling

    Dim myFS, MyFile<BR>Set myFS = CreateObject("Scripting.FileSystemObject")<BR>Set myFile = myFS.CreateTextFile("c:filename.htm")<BR>myFile.Wr iteLine("&#060;html>&#060;head>&#060;title>My Page&#060;/title>&#060;/head>&#060;body>")<BR>myFile.WriteLine(Request("fo rmfieldname") & "&#060;p>")<BR>myFile.WriteLine("&#060;/body>&#060;/html>")<BR>myFile.Close<BR>Response.Redirect("file name.htm")

Posting Permissions

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