Codice PHP:<?php
$filename = "NOMEFILE.txt";
$str = '<table>';
if (($handle = fopen ($filename, "r")) !== FALSE)
{
while (($linea = fgets ($handle, 4096)) !== FALSE)
{
$riga = explode('|',$linea); // al posto di | metti il tuo carattere separatore
$str.= '<tr>';
foreach($riga as $col)
$str.= "<td>$col</td>";
$str.= '</tr>';
}
fclose ($handle);
}
$str.= '<table>';
echo $str;
?>

Rispondi quotando