Link to home
Start Free TrialLog in
Avatar of lathashankar
lathashankar

asked on

ASP createfile error

I use following code to create text file and it is giving me error:
Microsoft VBScript runtime (0x800A0046)
Permission denied

Any help,
thanks

<%

For each item in request.Form
   item = request.Form (item)
next

Set ObjFile = Server.CreateObject("Scripting.FileSystemObject")

yourFile = Server.MapPath ("testfile.txt")

Set WriteFile= ObjFile.CreateTextFile (yourFile, True)

WriteFile.WriteLine("test")

WriteFile.Close

Set WriteFile = Nothing    

Set ObjFile = Nothing
%>
ASKER CERTIFIED SOLUTION
Avatar of bragn
bragn

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial