Reputation: 705
I understood the classes FileWriter
and File Reader
.
I want to know about the class RandomAccessFile
compared to FileWriter
and FileReader
.
Upvotes: 0
Views: 3040
Reputation: 533492
The RandomAccessFile is designed for random access of binary data. i.e. you can access anywhere in the file by index.
FileReader and FileWriter are for reading and writing text, not binary, sequentially.
Upvotes: 6