<?php
require("textfilereader.class.php");
$filename = "testfile.txt";
$sf = new TextFileReader($filename);
$sf->seekLine(1); // Go to line 1
while (($val = $sf->readLine())!=NULL)
echo $val."<br/>";
echo "Total number of lines: ".$sf->countLines();
?>
|