put sample code for web interface into a file