Re:Microsoft is updating Notepad
by rhencke on Friday July 13, 2018 @04:39PM
(#17526505)
You wait to peek the next byte, or EOF, and then make the choice.
[ Parent
| on HN ]
Re:Microsoft is updating Notepad
by marcosdumay on Saturday July 14, 2018 @12:23PM
(#17530930)
Line protocols do not transmit EOF (and the problem is on each line anyway). And the next byte may only come after you write something on the socket.