'read all remaining lines from the file'

def readlines(self):

    s = self.read()
    lines = []
    (i, j) = (0, s.find('\n'))
    while (j > (-1)):
        lines.append(s[i:(j + 1)])
        i = (j + 1)
        j = s.find('\n', i)
    if (i < len(s)):
        lines.append(s[i:])
    return lines
