http://www.clarin.com.ar
http://foros.emagister.com/foro-NuevoTe ... foro=13041 //Este es el que necesito
![]() |
![]() |
|
Moderador: iuav

File f = new File("c:\\archivo.txt");
FileInputStream fis = new FileInputStream(f);
BufferedInputStream bis = new BufferedInputStream(fis);
DataInputStream dis = new DataInputStream(bis);
//Para leer el archivo linea por linea.
String linea = null;
try
{
while ( (linea=dis.readLine()) != null )
{
//Verificando si hay algun texto como ".php"
if(linea.lastIndexOf(".php") != -1)
{
System.out.println(linea); // Imprime el archivo
}
}
}
catch (IOException e)
{
//Horror!
} 
Usuarios navegando por este Foro: No hay usuarios registrados visitando el Foro y 0 invitados