First page Back Continue Last page Overview Graphics
Diff (cont.)
//check if file1 has more lines!!!
if(line1 != null){
StringBuffer output1= new StringBuffer();
output1.append(args[0] +" " +
- "contains more lines: \n");
output1.append("line no.: " + file1In.getLineNumber()
+": " + line1 + "\n");
//now let's read all the lines left in file1!
while( (line1=file1In.readLine()) != null)
output1.append("line no.: " + file1In.getLineNumber()
+": " + line1 + "\n" );
output.append(output1.toString());
}
if(line2 != null){
//same code as in upper case only now we work on line2!