how to wirte specific text in a file python code example
Example 1: python append to file
with open(filename, "a+") 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()