You want "r" instead of "w+".  I'd suggest reading the Filesystem
Functions section of the manual again...

good luck!

-philip

On Tue, 27 Aug 2002, phper wrote:

> how do I read the contents of a file.
>
> $FileStream = fopen("webmaster/forum".$Forum."/forumtopics.txt", "w+");
>   $line = fgetss ($FileStream, 255);
>   print ("number is: ".$line." <br> ");
>
>   fclose($FileStream);
>
>   always returns nothing
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to