Is there a way to read a certain number of bytes from a RandomAccessFile in Java?
Asked
Active
Viewed 367 times
-1
-
1What did you find when you read the javadoc or used code completion in your IDE? – Peter Lawrey Jan 21 '14 at 20:10
1 Answers
1
How about the read(byte[] b)
method? From the Java docs..
Reads up to b.length bytes of data from this file into an array of bytes. This method blocks until at least one byte of input is available.

Martin Dinov
- 8,757
- 3
- 29
- 41