def filelines(fname,strip=False):
with open(fname,'<STR_LIT:r>') as f:<EOL><INDENT>lines = f.readlines();<EOL><DEDENT>if strip:<EOL><INDENT>lines[:] = [line.strip() for line in lines]<EOL><DEDENT>return lines<EOL>
read lines from a file into lines...optional strip