Guest User

Untitled

a guest
Jan 17th, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. byte[] bytes = new byte[5000];
  2. DataInputStream dis = new DataInputStream(new FileInputStream(file));
  3. int read = 0;
  4. int numRead = 0;
  5. while (read < bytes.length && (numRead=dis.read(bytes, read, bytes.length-read)) >= 0) {
  6. read = read + numRead;
  7. }
Add Comment
Please, Sign In to add comment