public static void main(String[] args) {
		while(true){
			System.out.println("Enter the file path of a file you want to encrypt or decrypt: ");
			filePath = input.nextLine();
			System.out.println("Processing...");
			
			reader = new ReadFile(filePath);
			
			int k = 1; 
			boolean fileExists = true;
			String newPath = "";
			 
			while(fileExists){
				
				String[] name = filePath.split("\\.");
				
				newPath = name[0] + "-" + k + ".txt";
				
				scouter = new ReadFile(newPath);
				try{
					scouter.openFile();
					fileExists = true;
					k++;
				}catch(Exception e){
					fileExists = false;
				}
				
			}
			
			writer = new WriteFile(newPath);
			
			try {
				startText = reader.openFile();
			} catch (IOException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
			
			if(startText[0].equalsIgnoreCase("ENCRYPTED")){
				decrypt();
			}else if(startText[0].equalsIgnoreCase("UNENCRYPTED")){
				encrypt();
			}
			
			System.out.println("The new file was named: " + newPath);
			System.out.println("The new file says the following:");
			System.out.println();
			for(int i=0; i<endText.length; i++){
				try {
					writer.writeToFile(endText[i]);
					System.out.println(endText[i]);
				} catch (IOException e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				}
			}
			System.out.println();
			System.out.println("Finished processing.");
			System.out.println();
		}
	}