Estas en el tema de averiguar si existe un fichero en el foro de Java en Foros del Web. Como puedo saber si existe un fichero HTML en el disco antes de abrirlo?????
Gracias...
public class Archivo { public static void main( String [] args ) throws IOException { File f= new File("c:/archivo.txt"); if(f.exists()){ System.out.println("existe"); }else{ System.out.println("no existe"); } }// end main