Ok I think I understand how to save information to a binary file but how do you recall a certain record in a binary file. For Example:
A address book, you have a person's name with information attached to it and you want to save this information to the binary file so you can recall this information, how do you look up that information in the binary file?
You either have to make records fixed size (say N) so that record #R is located at byte offset (R * N) within the file (R being zero based) or you have to start at the beginning of the file and read each record sequentially until you get to the one you want.
[There are other more complex databasey type solutions that I've ignored].