asp creat text file

Results 1 to 2 of 2

Thread: asp creat text file

  1. #1
    Join Date
    Dec 1969

    Default asp creat text file

    hi i have this asp code which creat a folder:<BR><BR>&#060;%<BR>dim fs,f,file<BR>set fs=Server.CreateObject("Scripting.FileSystemObject ")<BR>set fo=fs.CreateFolder("c:asp")<BR>set fo=nothing<BR>set fs=nothing<BR>%&#062;<BR><BR>i want to creat a text file (test.txt) in the asp folder.the correct is: set file=fs.CreateTextFile("c:asp est.txt")<BR>or set file=fo.CreateTextFile("c:asp est.txt")<BR><BR>thanks

  2. #2
    Join Date
    Dec 1969

    Default Why didn't you just try both?

    You would have quickly seen the answer.<BR><BR>Did you read the docs? Do you see the CreateTextFile method listed as a method in the Folder object? Hmmm???<BR><BR>

Posting Permissions

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