Ver Mensaje Individual
  #3 (permalink)  
Antiguo 06/03/2009, 17:33
oscarmoal
 
Fecha de Ingreso: marzo-2008
Mensajes: 63
Antigüedad: 16 años, 2 meses
Puntos: 0
Respuesta: Validar archivo del Servidor o ubicacion

puedes usar esto

Código PHP:
import java.io.*;

public class 
existe
{
   
/**
   * @param args
   */
   
public static void main(String[] args
   {
      
// TODO Auto-generated method stub
      
String sFichero "fichero.txt";
      
File fichero = new File(sFichero);
      
      if (
fichero.exists())
        
System.out.println("El fichero " sFichero " existe");
      else
        
System.out.println("Pues va a ser que no");
   }