01: import java.io.IOException;
02: import java.util.Scanner;
03: 
04: /**
05:    A program to test the Caesar cipher encryptor.
06: */
07: public class EncryptorTester
08: {  
09:    public static void main(String[] args)
10:    {  
11:       Scanner in = new Scanner(System.in);
12:       try
13:       {  
14:          System.out.print("Input file: ");
15:          String inFile = in.next();
16:          System.out.print("Output file: ");
17:          String outFile = in.next();
18:          System.out.print("Encryption key: ");
19:          int key = in.nextInt();
20:          Encryptor crypt = new Encryptor(key);
21:          crypt.encryptFile(inFile, outFile);
22:       }
23:       catch (IOException exception)
24:       {  
25:          System.out.println("Error processing file: " + exception);
26:       }
27:    }
28: }
29: 
30: