Jump to content

Writing to a text file


Guest cuz

Recommended Posts

HiThis is the code taken straight from the w3schools site, when i run the file i get an error saying permission denied, i have given write permission in IIS and i have write permission in the folder: :):) <%Set FS=Server.CreateObject("Scripting.FileSystemObject")Set RS=FS.OpenTextFile(Server.MapPath("client_ref_num.txt"), 1, False)ref_num=RS.ReadLineRS.Closeref_num=ref_numSet RS=FS.OpenTextFile(Server.MapPath("client_ref_num.txt"), 2, False)RS.Write ref_numRS.Close%>

Link to comment
Share on other sites

You used IIS to give write permissions to the anonymous web user? The account is called IUSR_<machine name>, make sure it has write access to the folder.Does any ASP run at all, or do you get permission denied on all ASP pages?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...