Creating a .txt file

Results 1 to 2 of 2

Thread: Creating a .txt file

  1. #1
    Join Date
    Dec 1969

    Default Creating a .txt file

    Hey everyone, <BR><BR><BR>I am trying to create a new .txt file and add some data into the new document, but am having difficulty<BR>in doing so. I am able to create a new excel document, and the code for this is<BR><BR>var ExcelSheet;<BR>ExcelApp = new ActiveXObject("Excel.Application");<BR>ExcelSheet = new ActiveXObject("Excel.Sheet");<BR><BR><BR>ExcelShee t.Application.Visible = true;<BR>ExcelSheet.ActiveSheet.Cells(1,1).Value = "testing";<BR>ExcelSheet.CreateXLSFile("C:\TEST.XL S");<BR>ExcelSheet.Application.Quit();<BR><BR><BR> How do i convert the code create a .txt file?<BR><BR>Thanks <BR><BR>Mac

  2. #2
    Join Date
    Dec 1969

    Default RE: Creating a .txt file

    Take a look at the FileSystemObject. It&#039;s in the docs. There is a link to the JScript docs on the left hand side of this page, about halfway down.

Posting Permissions

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