[fixed] #6 #7 Incorrect usage of RandomAccessFile