I know how to get a group of characters within a text file.
<?
if (!$file=fopen("file.txt", "r")) {
echo ("Could not open file");
} else {
$text = fread($file, 15);
fclose($file);
echo ("$text");
}
?>
But how do I instead of pulling the first 15 characters, pull the first 15 lines instead.
There is no max or minimum character length per line.
Any help would be appreciated.