Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.io.File;
- import java.io.FileWriter;
- import java.util.Scanner;
- /*
- * 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 anton
- */
- public class Principal {
- public static void main(String[] args) {
- String nombreFicheroEntrada = (args[0]);
- String nombreFicheroSalida = (args[1]);
- ImagenPGM imagen = new ImagenPGM(nombreFicheroEntrada);
- try {
- imagen.leeFichero(nombreFicheroEntrada, nombreFicheroSalida);
- } catch (Exception e) {
- System.out.println("Error al abrir el fichero: " + e.toString());
- e.printStackTrace();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement