Generate a sequence of lines from the file pointed to by this path, by
        opening as a regular file and iterating over it. The lines therefore
        contain their newline characters. If *noexistok*, a nonexistent file
        will result in an empty sequence rather than an exception. *kwargs*
        are passed to :meth:`Path.open`.

def read_lines (self, mode='rt', noexistok=False, **kwargs):
        """Generate a sequence of lines from the file pointed to by this path, by
        opening as a regular file and iterating over it. The lines therefore
        contain their newline characters. If *noexistok*, a nonexistent file
        will result in an empty sequence rather than an exception. *kwargs*
        are passed to :meth:`Path.open`.

        """
        try:
            with self.open (mode=mode, **kwargs) as f:
                for line in f:
                    yield line
        except IOError as e:
            if e.errno != 2 or not noexistok:
                raise