Creating .txt file through VBScript

Results 1 to 3 of 3

Thread: Creating .txt file through VBScript

  1. #1
    Join Date
    Dec 1969

    Default Creating .txt file through VBScript

    Hi,<BR>i need a sample code how to connect to "FileSystemObject", create and .txt file and adding text to it.<BR><BR>Thanks in advance

  2. #2
    Join Date
    Dec 1969

    Default Did you read the ASPFAQs?

    The ones on the top FileSystemObject?<BR><BR>Do so before continuing here.<BR><BR>*************<BR><BR>&#060;%<BR>Set FSO = Server.CreateObject("Scripting.FileSystemObject")< BR>Set outFile = FSO.CreateTextFile( Server.MapPath("testfile.txt") )<BR>outFile.WriteLine "This is a demo for Rupesh"<BR>outFile.Close<BR>%&#062;<BR><BR>

  3. #3
    Join Date
    Dec 1969

    Default RTFM

    the VBScript language reference, available to the left, has info on this.<BR><BR>j

Posting Permissions

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