Thanks for all your help with my previous lab. Now I'm having a tough time figuring out why a file write doesn't write over the existing data, but adds all the records in my Vector into the front of the file.
I had been using File, FileOutputStream and DataOutputStream and switched to RandomAccessFile "rw" because I thought it was due to the file not being designated as "rw" but I'm still having the same problem. I keep deleting the file between runs because it grows so large. My functions work because my read through the Vector ends when the book title is found.
What am I doing wrong?
Thanks!
( Here's my programCollapse )