Advertisement
Marin126

Cifrado IA Entregable

Apr 2nd, 2020
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1.  
  2. import java.io.*;
  3. import java.util.Scanner;
  4.  
  5. public class Cifrado {
  6.  
  7. public static void main(String[] args) {
  8.  
  9. String nombreFicheroEntrada = (args[0]);
  10. String nombreFicheroSalida = nombreFicheroEntrada.concat(".cfr");
  11. int clave = Integer.parseInt(args[1]);
  12.  
  13. File fEntrada = new File(nombreFicheroEntrada);
  14. File fSalida = new File(nombreFicheroSalida);
  15. Utils.leoYEscribo(fEntrada, clave, nombreFicheroSalida);
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement