OPen the file and read in the required number of characters (short
explanation). Have a look at the file handling functions.
--
David Robley
Thanks David,
I came up with this, but it doesn't work. Does text file need to be in a
special format? It is 4 paragraphs of plain text created in notepad.
------------------------------------------------------------
<html>
<head>
<title>Include Abbreviated File</title>
</head>
<body>
<pre>
<?php
$txtfile = fopen("text.txt", "r");
while (!feof($filePointer))
{
$line = fgets($txtfile, 250);
print $line;
}
close($txtfile);
?>
</pre>
</body>
</html>
------------------------------------------------------------
Thanks
Craig ><>
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]