Read and write file in python
file=open(FILE,'r') #READ ENTIRE text=file.read with open(FILE,'r') as f: for line in f: #do something with the line