Hey, I am having a problem figuring this out. I didn't use file I/O before this so be gentle at me :P.
Here is my problem: I am writing to a file, an object Book. The constructor looks as follows:
public Book(float bookId, String bkName, String bkAuthor, int year, String desc, boolean series)
My problem is, I want to write to a file, and use random access when searching through. How can I do this if the name/author/description will potentially be a different size for each book? And therefore, each object will be larger/smaller? Is it possible to use random file access for objects of different size?
Am I even thinking about this right?