What is the purpose of using random access in file handling?

  • To access files in a random order.
  • To create files with random names.
  • To generate random numbers for file operations.
  • To perform direct read/write operations at any position within the file.
The purpose of using random access in file handling is to perform direct read and write operations at any position within the file. Random access allows you to jump to a specific location in a file and read or write data without having to sequentially process the entire file. It's especially useful for large files or databases.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *