reading byte by byte

Feb 11 2005 7:43 AM
hi all i have converted java files to c# files. in java inputstream class is there , read method reads byte by byte. int is working fine in java. but in c# readbyte() method is there...which says it reads byte by byte...but i am getting int i=stream.readbyte() returning -1....even it has buffer data in it.... could u please help me out. thanks request.

Answers (7)