« Return to the main article
Just curious as to why the condition should be bytesRead <= 0 instead of bytesRead < 0.
I know the read method returns the number of bytes read or -1 if it reaches to end of the file or stream.
I'm not questioning your idea just wondered why it makes a difference. Please enlighten.
Just curious as to why the condition should be bytesRead <= 0 instead of bytesRead < 0.
I know the read method returns the number of bytes read or -1 if it reaches to end of the file or stream.
I'm not questioning your idea just wondered why it makes a difference. Please enlighten.