<?php
/*
* You'll need the dm.File class from phpclass.org to run this example.
*
* The test file is a sanitized log file from paypal.
*/
include_once('File/class.File.php') ;
include_once('class.DelimitedTextFiles.php') ;
function parse(
$theFile)
{
while (($line = $theFile->gets()) !== FALSE)
{
var_dump(DelimitedTextFiles::parse($line, "\t")) ;
echo "\n" ;
}
}
$a = new File('Download.txt', 'r', 'parse') ;
?>
|