L = open("myFile.txt", "r").read().splitlines(); for line in L: process(line) # this 'line' will not have '\n' character at the end
No comments:
Post a Comment