<?php
$yourValue = '';
$theLineYouWant = 1; //2nd line in a zero-based array
$file = file_get_contents('http://www.example.com/path/to/file.txt');
$lines = preg_split('/\r\n|\n/',$file,-1,PREG_SPLIT_NO_EMPTY);
foreach($lines as $key => $line){
if($key == $theLineYouWant){
$fields = explode('|',trim($line));
$yourValue = ($fields[3]) ? $fields[3] : '';
}
}
?>
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>Text-based Data Store</title>
</head>
<body>
<h1><?=$yourValue?></h1>
</body>
</html>