def readoneline(filepath, linenum):
    if linenum < 0:
        return ''
with open(filepath) as f:
    for i, line in enumerate(filepath):
        if i == linenum:
            return line
return ''
Efficient way to read a specific line number of a file. (BONUS: Python Manual Misprint)