Hadock23 de Noviembre del 2007
PreguntaNecesito hacer un pequeno programa para leer logs de un Servidor Http. (Estan guardados como Text Document)
He intentado hacerlo de la siguiente manera sin obtener resultado(me dice que el fichero no existe):
f=new File(name);
if(f.exists())
{
fis=new FileInputStream(f);
while(fis.available()>0)
{
System.out.println("A new data read from the file: "+fis.read());
}
}
else
System.out.println("File "+name+"doesn't exist!");
Agradeceria cualquier ayuda ;-) Gracias!
He intentado hacerlo de la siguiente manera sin obtener resultado(me dice que el fichero no existe):
f=new File(name);
if(f.exists())
{
fis=new FileInputStream(f);
while(fis.available()>0)
{
System.out.println("A new data read from the file: "+fis.read());
}
}
else
System.out.println("File "+name+"doesn't exist!");
Agradeceria cualquier ayuda ;-) Gracias!
