Ok first just read the file into an array with
$fileArray = file(FILENAME);
Then do a for loop that loops 10x
for(i=0;i==10;i++)
So you will now have the following code that will only return 10 lines you might want to put this in a function and make the number 10 into a variable so you can use the same function to return the 20 line version
$filename = "reacties.dat";
$fArray = file($filename);
for(i=0;i==10;i++)
{
$line = $fArray[i];
$line_array = explode("|", $line);
$title = $line_array[0];
$name = $line_array[1];
$email = $line_array[2];
$date = $line_array[3];
$ip = $line_array[4];
$message = $line_array[5];
//Here the data is printed into my own lay-out
}
Let me know if this works out.