<% file = "content.htm" 'File to edit dim fso Set fso = Server.CreateObject("Scripting.FileSystemObject") if Not IsEmpty(Request.Form("txtContent")) then 'Save sContent = Request.Form("txtContent") const ForWriting = 2 const Create = True dim tso set tso = fso.OpenTextFile(Server.MapPath(file), ForWriting, Create) tso.write sContent tso.close set tso = Nothing end if %>

Editing a File (ASP example) - Back