2082 4

BIT401 ยท 2082 ยท 5 marks

How do you access file randomly? Give an example.

How do you access file randomly? Give an example. [5]

Advanced Java ProgrammingChapter 2: Exception Handling and Input/OutputRandom file access

Random file access (also called direct access or seek access) allows you to read or write data at any position in a file without having to read through all preceding data sequentially. This is in contrast to sequential access where you must read from the beginning. The key steps are: 1. Open the ...