#! /usr/bin/python print "Content-type: text/plain" print "" fh = open('/home/brock/csci242.txt', 'r') oldLine = fh.readline() oldLine.rstrip("\n\r") ; fh.close() oldNum = int(oldLine) print "Accessed " + str(oldNum) + " times" newNum = oldNum+1 fh = open('/home/brock/csci242.txt', 'w') fh.write(str(newNum)) fh.write("\n") fh.close()