added AfpFile for supporting RandomAccessFile