fopen is a great place to start
take a look at this script
$file = "myFile.php";
$filie_open = fopen($file, "r");
// then you need to break the file down into a line by line array
$array = file("$file");
// you then explode each line using your seperator as the point to
// break the data into pieces you can do this by looping
// through the first array can use various methods to loop
for ($i=0;$i<count($array);$i++){
$array_of_line = explode("|", $array[$i]);
echo $array_of _line[0]." \n";
echo $array_of_line[1]]."<br />\n"; ;
echo $array_of_line[3];
}
if your file contains somthing like
name|surname|dob|address
it should print out somthing like:
name surname
address
hope this helps i havn't tested it