Java newbie confused about merging files
Here is the question
The Redgranite Library keeps a file of all books borrowed every month. Each file is in Library of Congress number order and contains additional fields for author and title.
a. Design the logic for a program that merges the files for January and February to create a list of all books borrowed in the two-month period.
I am doing ok with basic coding, but I am confused when it comes to merging files and checking properly for eof...below is the pseudo code (as bad as it is and probably wrong all together) that I have so far...any guidance would be greatly appreciated
string end_num = “zzzzzzzzzz”
string bothAtEnd = “N”
while bothAtEnd <> “Y”
get janLOCnum, janAuthor, janTitle
get febLOCnum, febAuthor, febTitle
If janLOCnum < febLOCnum
output janLOCnum, title, author
output febLOCnum, title, author
side note, this only has to be pseudo code not an actual working program...