I may be confused here, so correct me if I'm wrong. If you read input starting from an arbitrary position and split by `\n`, the *first* element is likely a partial line. If you then reverse it, the *last* element is likely a partial line. Wouldn't you `pop` that off instead of `shift`ing it? And wouldn't we need to `shift` off the empty string that follows the file's trailing newline?