Last active
June 7, 2016 01:02
-
-
Save kasimok/a8e66fa48caa34bd554a860ba724f84f to your computer and use it in GitHub Desktop.
Read file by RandomAccessFile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RandomAccessFile raf = new RandomAccessFile("certs/client/client.cer.pem", "r"); | |
byte[] buf = new byte[(int) raf.length()]; | |
raf.readFully(buf); | |
raf.close(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment