What is the difference between File and RandomFileAccess classes

Showing Answers 1 - 3 of 3 Answers

The directories and files of local class of file system can be encapsulated using file class. In file class if we need to access some nth byte of the file then the file should be read from 0 byte to nth byte.
Some methods can provide direct access to the data present in any part of the file, such methods are provided by RandomFileAccess class i.e., we can directly access the nth byte without reading any of the previous bytes.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions