Gautham Kumar wrote:Question#1: Can you please verify/confirm if first 4 bytes are for Magic Cookie, next 4 bytes are for Rec Length and next 2 bytes are for "No of Fields in each record".
Gautham Kumar wrote:Qustion #2 : The second entry output of "70", is this for "offset to start of record zero" or "record length"? I am confused;-( what exactly is offset ? please explain a little bit about offset?
Gautham Kumar wrote:Question#3 : Are there any spaces between the entries in the DB file? If so, how to skip spaces and jump to next entry using Random Access File?
Gautham Kumar wrote:Am i in the right direction?
Gautham Kumar wrote:Please check my updated code:
Gautham Kumar wrote:Question#1: I don't understand schema definition, it is very ambigous. Can you please explain in more details? especially "n bytes (defined by previous entry)"? Are they separated by commas","'s? How to read the schema definition? Is schema definition same as field names and length of each field?
Gautham Kumar wrote:Question#2: How to read "field names" and "field length" which seem to be critical for reading rest of contents.
Gautham Kumar wrote:Question#3: Which methods should i use in Random Access File to read each element in data section as i have ~28 data records? with readLine(), i could print all 28 records in one line.