JGuizard
3/23/2016 - 7:31 PM

Read and write file in python

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