I want to read and write some values into the DataOutputStream, but sometimes the value is int -1.
I am able to write this value but while reading getting EOFException, I think the value -1 its reading a EOF.
Can someone help me to figure out how can I read and write -1 into DataOutputStream.
Thanks in advance.