Buffering File in Binary Mode
in
Programming Questions
•
3 years ago
Hello all, new user, saw a presentation on this at USENIX and thought it would be perfect for the memory trace analyses I'm doing.
Anyways, here is my problem: I want to process a very large binary mode file - meaning that the data is saved as binary/hex values, not characters. Said file is over a gig large. BufferedReader sets the file up to read "lines", so I assume it will be looking for newline characters, which only would exist in the file if my data happens to have the right bit patterns. loadBytes() apparently loads the entire file in one go. What do you recommend I use? I just want to read single fixed-length blocks of the file at a time.
If it helps, I do have Java experience, though it has been years since I used it, and I've grown more familiar with C++ in the long run. At the very least, I understand the general syntax. Thank you for your assistance!
1