You do realise that once you've read a character, that character is lost, so you can't send it to the encode function.
1 Like
You do realise that once you've read a character, that character is lost, so you can't send it to the encode function.