/*

Magallon Juan-Qui Inti Sandino
Algoritmos y Estructuras de Datos

*/

import java.io.*;

public class LeeArch{

public static void main(String args[])
{
FileReader f=null;
LineNumberReader ent=null;
try
{
f = new FileReader("inti.txt");
ent=new LineNumberReader ( f );
}
catch (IOException e)
{
System.out.println ("NO SE PUDO ABRIR EL ARCHIVO!!!");
}
try
{
String linea;
linea=ent.readLine();
while (linea!=null)
{
System.out.println(linea);
linea=ent.readLine();
}
}
catch (IOException e)
{System.out.println("ERROR AL PROCESAR EL ARCHIVO");}
try {
ent.close( );
f.close( );
}
catch (IOException e)
{
System.out.println("Error");};
System.out.println(" HECHO ");
}
}


Hosted by www.Geocities.ws

1