ONE: Example of opening a new TXT file and write down some helpful data.
import time
fin = open("data.txt", "w")
fin.write(str(1000 * round(time.time())))
fin.write("Hello Python World !")
fin.write("\n")
fin.close()
TWO: Example of opening a TXT file and read the data inside.
file = open("ABN_front_1.txt", "r")# read one line fron file
line = file.readline()
print line
#read all lines from file
lines = file.readlines()
print lines