posted 19 years ago
Hi,
I am making extensive usage of the RandomAccessFile class in my project, but I am not sure if this is really correct.
There reason why I am asking it is because of a few lines of my specification, which says " All numeric values stored i the header information use the formats of the DataInputStream and DataOutputStream classes (...)".
By reading it, I have the felling the using RandomAccessFile for reading the database file is just wrong, however, making direct use of DataInputStream and DataOutputStream would make the code much more complex.
Would it be a mistake to use the RandomAccessFile?
Any help would be highly appreciated.
Thanks in advance,
Bernardo Sana