Open Han-Gang opened 5 years ago
file_object = open('test.txt','rU') try: for line in file_object: do_somthing_with(line) # the line with "\n" finally: file_object.close()