Posted: Tue Jan 23, 2007 8:49 pm Post subject: Random Access File Help
Ok so I have this program that uses random access files (attached, 3 parts) its really messed up and I have no idea how to fix it. I'll try to explain what is wrong although I'm not totally sure. So the program is supposed to write entries into the "Phonebook" which is random access file and then it is supposed to be able to recall the entries but searching for last name. From what I've seen, when you only input 1 entry it works fine but when you enter 2 entries then it gets messed up. When there are 2 entries and you search for the second one you entered it give you and error and crashes which I don't understand but also when you have 2 entries and you search for the first one it gives you the info of the second one. I'm usually pretty good at java but I just totaly don't understand these random access files properly. Hopfully you can help me. Thanks