Web Analytics Made Easy -
StatCounter fso.CreateTextFile - CodingForum

Announcement

Collapse
No announcement yet.

fso.CreateTextFile

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • fso.CreateTextFile

    im trying to do this:
    Code:
    Set fso = CreateObject("Scripting.FileSystemObject")
    Set textStreamObject = fso.CreateTextFile("myfile.txt",true,false)
    but i get this:
    Microsoft VBScript runtime error '800a0046'

    Permission denied

    /createtextfile.asp, line 2
    anyone got any ideas on how to make a textfile in asp?
    My tech/code blog

  • #2
    i got it working with the example form w3schools but is there any way to put it in a relative path or do i need to use Request.Servervariables("PATH_TRANSLATED")
    Last edited by ghell; Mar 2, 2004, 11:17 AM.
    My tech/code blog

    Comment


    • #3
      nevermind, Server.Mappath("myfile.txt") i shud really look this up beofre asking rite.. but .. i did .. and then just after i ask, i font 3 sites always my luck.. still.. more lucky that nnot answering and not finding like last time lol
      Last edited by ghell; Mar 2, 2004, 11:50 AM.
      My tech/code blog

      Comment

      Working...
      X