Best method for reading newline delimited files and discarding the newlines? January 26, 2023 by Tarik lines = open(filename).read().splitlines()