<% //Write a (text) file on the server; //Ensure the script has write access on the directory in question. var fso = Server.CreateObject("Scripting.FileSystemObject"); var f = fso.CreateTextFile( Server.MapPath('helloworld.txt') , true); f.Write("Hello World!"); f.Close(); %> Done Writing