<<< FileChannel example: writing multiple random records | Index | BufferedReader example: reading random access file sequentially >>> |
Reading random access files can be done either sequentially or randomly
Sequential access benefits:
no need to use random access file
instead, read records, sort records, display records
Random access benefits:
retrieve specific record from file directly -- no need to read any other records
constraint: must use unique key field to locate the record
<<< FileChannel example: writing multiple random records | Index | BufferedReader example: reading random access file sequentially >>> |