In the comment above the call to the RandomAccessFile constructor, it says that it opens the file for both reading and writing. That confused me because the call to the constructor only had "r" in the second argument instead of "rw". I just recently learned about random access files, so that's why i found it so confusing. Anyway, I just wanted to point it out so no one else who is fairly new to java gets confused.
Small error, confusing in-code commentAustin July 27, 2012 at 9:34 PM
In the comment above the call to the RandomAccessFile constructor, it says that it opens the file for both reading and writing. That confused me because the call to the constructor only had "r" in the second argument instead of "rw". I just recently learned about random access files, so that's why i found it so confusing. Anyway, I just wanted to point it out so no one else who is fairly new to java gets confused.
Post your Comment