how to read and write from file python 3 code example
Example 1: python write to file
with open(filename,"w") as f:
f.write('Hello World')
Example 2: python open and read file with
with open('pagehead.section.htm','r') as f:
output = f.read()