fgets uses the resource created by fopen. Read the manual:
http://it.php.net/fopen http://it.php.net/fgets look at the example: <?php $handle = fopen("/tmp/inputfile.txt", "r"); while (!feof($handle)) { $buffer = fgets($handle, 4096); echo $buffer; } fclose($handle); ?> Ian On Fri, 2004-12-17 at 11:24 +0100, [EMAIL PROTECTED] wrote: > Hi there! > > Can someone explain the major difference between fgets and fopen? Which is > the best together with plain textfiles? and why? > > eof and feof. What's the difF? *don't get it* > > When using fget. Is it something special you should think when taking care > of line-breaks? (/n, /r/n ...) > > /G > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php