Write asp contents to a textfile?

Results 1 to 2 of 2

Thread: Write asp contents to a textfile?

  1. #1
    william Guest

    Default Write asp contents to a textfile?

    How do I write my asp displayed contents to a text file? Do I use the FileScriptingObject and/or Dictionary Object? Thanks.

  2. #2
    Join Date
    Dec 1969
    Posts
    572

    Default RE: Write asp contents to a textfile?

    &#060;%Set FileObject = Server.CreateObject("Scripting.FileSystemObject")< BR><BR>Set OutStream= FileObject.OpenTextFile("D:yourfoldernameyourfolde ryourlog.txt",8,TRUE)<BR>OutStream.Write "Welcome!" & vbTab<BR>OutStream.Write Time & " " & Date & vbTab<BR>OutStream.Write Session("oranythingelse") & vbTab<BR>OutStream.Write "The end"<BR><BR>Set OutStream = Nothing<BR>%&#062;

Posting Permissions

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