When I try to retrieve the information stored in a file like this one: http://www.dzt62.nl/FAC11105.FPT . I encounter difficulties parsing this file: I don't get all information. Some part of the file doesn't show up when I use this PHP-script to read the file:
<?PHP
$datei = fopen($file,"r");
while (!feof($datei)) {
$zeile=fgets($datei,1000);
$zeile=trim($zeile);
$line = split("[\r]", $zeile);
for ($q=0;$q<count($line); $q++) {
$line[$q]=trim($line[$q]);
echo $line[$q]. "<br>";
$result = split("[ ]",$line[$q]);
$ID = $result[0];
$value = $result[1];
etc...
?>
I think it has to do with some ASCII-characters like 0x00 (<nul> ) and 0x01(<soh> ) in that file. Can somebody give me the best way to handle this file and how I can retrieve all information stored in this file?