print "HTTP/1.0 200 OK\r\n" print "Content-type: text/html\r\n\r\n" f=open("websentinelrb.html") f.each {|line| puts line } f.close f2=open("websentinelcounter","r+") c = f2.readline.to_i + 1 f2.pos=0 f2.write c.to_s f2.close puts "" puts ""