Ver Mensaje Individual
  #2 (permalink)  
Antiguo 21/04/2007, 13:25
Avatar de locoporelrojo
locoporelrojo
 
Fecha de Ingreso: abril-2006
Ubicación: Cali - Colombia
Mensajes: 98
Antigüedad: 18 años, 1 mes
Puntos: 2
Re: Leer linea a linea un fichero .in

Intenta lo siguiente:

Código PHP:
File file = new File("nombreArchivo.in");
BufferedReader buffer = new BufferedReader(new FileReader(file));
String lineaArchivo buffer.readLine();
//este "fwhile" leera hasta que llegue al final del archivo
while (lineaArchivo != null)
    
lineaArchivo buffer.readLine(); 
Me haces saber si te fue util.
__________________
Sony PSP Slim & Lite (Piano Black) - Sony Memory Stick DUO Pro 4 GB
3.60 -> 3.71 M33-2 -> 3.80 M33 -> 3.80 M33-5 -> 3.90 M33