python module for reading txt code example
Example 1: python open and read file with
with open('pagehead.section.htm','r') as f:
output = f.read()
Example 2: python output to text file
$ python my_program.py > output.txt
with open('pagehead.section.htm','r') as f:
output = f.read()
$ python my_program.py > output.txt