Best method for reading newline delimited files and discarding the newlines?

lines = open(filename).read().splitlines()

Leave a Comment