Oh, right, I didn't notice you were **decrementing** the index. What about moving the `i++` into this `else if` block? Otherwise the situation of the file having only one line is not handled correctly (you're then skipping the first character of the line).