Now I use:
pageHeadSectionFile = open(\'pagehead.section.htm\',\'r\') output = pageHeadSectionFile.read() pageHeadSectionFile.close()
But t
I think the most natural way for achieving this is to define a function.
def read(filename): f = open(filename, 'r') output = f.read() f.close() return output
Then you can do the following:
output = read('pagehead.section.htm')