Duplicate :
|
|
Relates :
|
|
Relates :
|
Name: mr33420 Date: 10/01/98 Start reading a file byte-by-byte. Once you reach end-of-file, give inputStream.skip(5) (to skip 5 bytes). Instead of returning -1 (since no bytes can be skipped), skip(long) returns the actual bytes asked to skip (in this case 5 bytes). Since skip(long) does not return -ve number, I tried to read from file (and have not closed the file yet) Read method returns -1 which specifies that EOF is really reached. Isn't this bug related to skip method ? (Review ID: 38778) ======================================================================
|