On Friday 03 August 2001 05:59, Craig Westerman wrote:

> <?php
> $txtfile = fopen("text.txt", "r");
>
> while (!feof($filePointer))

$txtfile instead of $filePointer

> {
>      $line = fgets($txtfile, 250);

fgets reads a line (i.e. up to a newline) with at most the specified 
numbers of characters. So you read the entire file, line by line.
Use $Text = fread ($txtfile, 250); instead.

>      print $line;
> }
>
> close($txtfile);

fclose

-- 
Christian Reiniger
LGDC Webmaster (http://lgdc.sunsite.dk/)

"Software is like sex: the best is for free" -- Linus Torvalds

--
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]

Reply via email to