think in java - io - RandomAccessFile

# when to use RandomAccessFile?
dom

It is used for files containing records of known size so that you can move from  one record to another using seek().ci


# sthget

  1. RAF has no association with InputStream/OutputStream.it

  2. getFilePointer(): find out where you are in the file.io

  3. seek(): to move to a new point in the file.sed

相關文章
相關標籤/搜索