Since I'm completely confused, I hope I've stated my question clearly enough so that I'm not confusing anyone else.
Not me. I went through this once.
...skipBytes. I can't see the benefit of using this method nor does it seems to assist in reading the file?
Skip bytes cannot replace the seek function with RandonmAccessFile. See that skipbytes only makes an attempt to skip. Here is the javadoc for it
Makes an attempt to skip over n bytes of data from the input stream, discarding the skipped bytes. However, it may skip over some smaller number of bytes, possibly zero. This may result from any of a number of conditions; reaching end of file before n bytes have been skipped is only one possibility. This method never throws an EOFException. The actual number of bytes skipped is returned.
So, what is the intention of the "int"?
Don't caught you question clearly. The int recNo is to specify the record you like to pull from database. 1 (or 0)means first record 2 (or 1) means second record.
I think you might have already figured out. If not take a look at the following url's.
https://coderanch.com/t/186390/java-developer-SCJD/certification/RandomAccessFile https://coderanch.com/t/186352/java-developer-SCJD/certification/urlyBird-requirement-clarification https://coderanch.com/t/186351/java-developer-SCJD/certification/db-access-returning-String [ November 01, 2004: Message edited by: jiju ka ]
[ November 01, 2004: Message edited by: jiju ka ]