Data FilesTypesTextFileMethodsread_linesOn this pageread_lines Method of TextFile. read_lines() -> List Reads the file as a list of lines (line endings stripped).