my dog learned polymorphism
The moose likes Beginning Java and the fly likes RandomAccessFile() Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "RandomAccessFile()" Watch "RandomAccessFile()" New topic


jake mullet

Joined: May 09, 2001
Posts: 15
Ok fellas, come a long way and i have learned a ton. The two files that I am putting together one after another in the new file is working but...the second file contains several lines at the begining that are contained at the end of the first file so i have duplicate records in the middle of the new file!! Im thinking of using the RandomAccesFile() but how would I implement this with the code I have already written, must it only deal with DataOutputStreams? I will try to visually show you what the two files look like before the program is run on them below then my code.

thanks for you guys help JM
(edited by Cindy to format code)

[This message has been edited by Cindy Glass (edited June 07, 2001).]
Cindy Glass
"The Hood"

Joined: Sep 29, 2000
Posts: 8521
OK Jake,
The UBB ate your file examples. I didn't touch them. I will talk to the other moderators to see what might have happened.
In the meantime, could you edit the above message and put the input file examples back.
(This it WAY weird)

"JavaRanch, where the deer and the Certified play" - David O'Meara
I agree. Here's the link:
subject: RandomAccessFile()
jQuery in Action, 3rd edition