is there any way that we can read as bytes withoutI don't understand your particular requirement and its purpose. Generally, a simple and robust way of implementing an application level protocol, a set of request/response dialogue, is sending/receiving texts, or strings, each delimited by a newline marker. The readLine() method automatically checks the marker at the end of each text string. If you don't use newline markers, you would have to use <number-of-characters> header at the top of each text that should be rather cumbersome.
checking end of line.