|
|
||
| You are here: | ||
|
OK, after many requests, here it is. From records to RAF files. There will be gaps and these are "learning opportunities" :-) Let the great journey commence...
Getting the size of your record (in bytes) correct is vital because you need to be able to seek to the start of a new record using this figure in the calculation. Most problems occur when this is incorrectly calculated.
Good to check the data entered when creating a new instance.
Trivial example of polymorphism and anyway, you could find a much better way to display rcords from the file.
|
A record structure - we will need to define this first. If you are to convince the examiner that you know your way around this topic, we strongly suggest you have different data types in your records.; This record structure is about club members or something similar /** Related: [ Java home | Files home | Previous:serialization | Next: Console ] |
Now, this is a teaching resource, rather than a series of code examples to copy without understanding, so you will have to work on these to understand them! |
|
|
|||
|
Questions or problems related to this web site should be addressed to Richard Jones who asserts his right to be identified as the author and owner of these materials - unless otherwise indicated. Please feel free to use the material presented here and to create links to it for non-commercial purposes; an acknowledgement of the source is required by the Creative Commons licence. Use of materials from this site is conditional upon your having read the additional terms of use on the about page and the Creative Commons Licence. View privacy policy. This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 License. © 2001 - 2007 Richard Jones, PO BOX 246, Cambridge, New Zealand; This page was last modified: July 29, 200823, 2008 |