Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
- /**
- *
- * @author install
- */
- import java.util.Scanner;
- import java.io.File;
- import java.io.FileNotFoundException;
- import java.io.IOException;
- import java.io.FileOutputStream;
- import java.io.PrintStream;
- public class Main {
- /**
- * @param args the command line arguments
- */
- public static void main(String[] args) throws Exception{
- // TODO code application logic
- File file = new File("ciphertext.txt");
- FileOutputStream fis = new FileOutputStream(file);
- Scanner in = new Scanner(new File("planetext.txt"));
- PrintStream out = new PrintStream(fis);
- System.setOut(out);
- System.out.println(in.next());
- }
- }
Add Comment
Please, Sign In to add comment