ICS 111, Introduction to Computer Science
Lab 16 - File Merging
Instructions:
To receive credit for this lab assignment, you must be finished by
Friday, April 1, at 11:59 p.m. After this time you will not receive any credit.1. Log in to UH UNIX (Secure Shell in Windows) or (Putty) and create a Java application that fulfills the following requirements:
First you should prompt/ask the user for two filenames. Validate those names.
If they are empty or contain only blanks you should ask again. Always give the user the option to finish program execution.
Once you have the 2 file names you will merge them one line at the time.
Example:
input file 1 contains
1
2
3
4
5
6
7
8
9
input file 2 contains
a
b
c
d
e
the output file should contain
1
a
2
b
3
c
4
d
5
e
6
7
8
9
2. Open Pine (Getting Started with Pine, PDF) and send an email with the file attached to ics111-lab@hawaii.edu account.
- Your e-mail should have the following subject: lab X / lastname (substitute the lab number for 'X', and lastname should be substituted for your lastname) Not following this standard will result in a deduction of points.
- SEND YOUR .JAVA FILES WITH (ATTACHED) TO THE EMAIL.
3. Check the webpage to make sure that the e-mail arrived at
http://www2.hawaii.edu/~tp_200/bmf/ics111-lab.html