la clase FILE contiene un metodo llamado
exists(); Código PHP:
/*
* Author: Crysfelin
* Created: Friday, July 29, 2005 10:45:23 PM
* Modified: Friday, July 29, 2005 10:45:23 PM
*/
import java.io.*;
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
}
have funn