def METHOD_NAME(self):
    if self.closed:
        raise ValueError('I/O operation on closed file')
    # Documentation recommends using '\n' as the line terminator when reading/writing text
    # files. See `os.linesep` in https://docs.python.org/3/library/os.html
    new_line = '\n'
    return [f'{line}{new_line}' for line in self.data.split(new_line)]