Personaly I like using file() which gets the entire contents of the file into an array, one item per line. I find it much easier to use, provided the files arn't too large or memory usage isn't too big a concern.
As for showing the data it's just a simple matter of echoing it to the client, now if you want stuff like special formating then you'd have to add a few extra echo's containing the formating code but thats simple enough once you understand the basics.
<?php
$londonStationFile = "../activeData/".$londonStation.".txt";
$fileName = fopen($londonStationFile, "r");
$rows = file($fileName);
echo '<table>';
for($i=0;$i<count($data);$i++)
{
echo '<tr>
$columns = explode("|",$data[$i]);
for($h=0;$h<count($columns;$h++)
{
echo '<td>'.$columns[$h].'</td>';
}
echo '</tr>';
}
echo '</table>';
?>
I'm acutaly in the process of working on a script for a client of mine to dynamicly create tables and input the data from a pipe separated text file using MySQL so you caught me at the right time with this question.