#!/usr/bin/env python # -*- coding: utf-8 -*- POINTER_LOG = open("pointer.txt") lines = POINTER_LOG.readlines() RESULT = open(lines[-1].strip()) print "Content-Type: text/plain" print for line in RESULT: print line.strip()