krebernisak
11/11/2013 - 7:08 PM

Open file and readlines

Open file and readlines

with open(fname) as f:
    content = f.readlines()