Hi all, About Data file Format, Comments in assignment say: ------------------------------------------------------------------------- "All numeric values are stored in the header information use the formats of the DataInputStream and DataOutputStream classes." -------------------------------------------------------------------------
Does it mean I must use DataInputStream/DataOutputStream to read/write the Data file? Can I use RandomAccessFile, or others, to access Data file?
Thanks
Andrew Monkhouse
author and jackaroo
Marshal Commander
All the instructions are telling you is the format of the data. The instructions do not specify what classes you must use.
So check what DataInputStream/DataOutputStream and RandomAccessFile implement - if you can work back to a common denominator then you can use RandomAccessFile.