update LearnIO for RandomAccessFile