First page Back Continue Last page Overview Graphics
Diff (cont.)
}catch(FileNotFoundException fnfe){
System.out.println
("one of the files doe's could not be opened!");
}
catch(IOException ioe){
System.out.println
("an error occured when reading from one of the files.” + “aborting...");
}
//check if differencs . if so print a message and the //stringBuffer with all differences
if(!noDiff){
System.out.println
("Diff found some differences between the files: ");
System.out.println(output.toString());
}
else //no differences!
System.out.println
("Diff found no differences between the files: ");
}
}//end of main