Read and Write Serialized Object to Random Access File
807607Dec 24 2006 — edited Dec 30 2006hi,
i need to read and write at the same time to a file. i know about the RandomAccessFile class and the Serialization but as i look at the API documentation i can see the i will need an ObjectOUtputStream to write objects to a file which, as far as i know, i can only use FileOutputStream. i cannot use fileoutputstream since i need to both read and write to the file at the same time.
am i missing something here? what class can i use to read and write objects to a single file? can i write more than one object to a single file?
Message was edited by:
dhenjhidz