Re: Merging two data file
I am willing to bet that one error it is telling you is that there are uncaught exceptions. You cannot perform file I/O without catching/throwing exceptions.
Re: Merging two data file
Quote:
I can't compile my program because there are still errors and missing codes... can someone help me edit it, and is this how i do it according to the requirements. thx.
It would help if you posted the errors you got when compiling and also explain what code you are missing. Also please use code tags when posting code.
As well as ProgramThis's correct observation, a more fundamental problem is on these 2 lines:
Code:
BufferedReader br1 = new BufferedReader of(file1);
BufferedReader br2 = new BufferedReader of(file2);
What's the 'of' for?
Re: Merging two data file
I've just noticed this is a duplicate of this thread