<<< Sequential vs. Random Access Files | Index | FileChannel class >>> |
Random access to files
Records can be located in any order
Also called direct access or instant access files
A pointer has to be set prior to reading/writing a record
java.nio.channels.FileChannel and java.io.RandomAccessFile classes:
Both classes allow reading and writing a file
Program can search for a specific location in a file. Read/write operations will start at a specific position.
<<< Sequential vs. Random Access Files | Index | FileChannel class >>> |