Código PHP:
<?php
function abrir($file)
{
//- Abriendo el fichero txt y si no se muestra un mensaje
$fo = @fopen($file, "r") or die ("¡ No encuentro el fichero !");
//averiguamos el tamaño de txt
$file_length= filesize($file);
echo "\n";
echo "el tamaño del fichero:" . "<br>";
echo $file_length . "<br>";
$fs = fseek($fo,0 , SEEK_CUR);
//LECTURA DE CARACTERES
$current_char = fread($fo, $file_length);
echo "Ahora mismo el cursor esta localizado en estos caracteres:
$current_char", "\n";
fclose($file);
}
?>
ahora guarda este archivo como abrir.php
cuando quieras ver varios archivos haz esto
Código PHP:
<?
include("abrir.php");
abrir("archivo1.txt");
abrir("archivo2.txt");
?>
No lo he probado, pero creo que funciona.