def read_lines(file_path):

    with open(file_path, "rb") as f:
        return [line.strip("\n").strip("\r") for line in f.readlines()]
Read the contents of a file into a list of lines.
dataset/ETHPy150Open haesken/dftools/lib/dftlib.py/read_lines