•FileReader inStream = null; // 26, outside try
•FileWriter
outStream = null; // 27, outside try
•try
{
• inStream
= new FileReader(args[0]); // 32
• outStream = new FileWriter(args[1]); //
33
• while (…) { // 36-38 copy loop
•
}
•catch // various errors
•40: faulty command line input -
give usage message
•44: source file not found (or not
readable)
• target
file not writeable
•47: something went wrong in
actual read/write