Indeed, we can't know the line number accurately unless we start from the beginning *or* scan the whole file (which seems silly if the file is gigabytes or terabytes in size)