$events = fopen("data.txt", "r");
print "Events:
";
while (! feof($events)) :
$event = fgets($events, 4096);
$event_info = explode("|", $event);
print "$event_info[0] ( $event_info[1] )
";
print "$event_info[2]
";
print "$event_info[3]
";
endwhile;
print "
";
fclose ($events);
?>
File: data.txt
a|b|c|d|e