Dec 222009

Use readlines()
For example,

arg = “filename”

f = open(arg, ‘r’)

lines = f.readlines()
f.close()

Posted by weboom at 2:32 pm Tagged with: ,
Switch to our mobile site
Top Footer