note 55153 deleted from function.fopen by wez

From: Date: Tue, 09 Aug 2005 20:41:20 +0000
Subject: note 55153 deleted from function.fopen by wez
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-93337@lists.php.net to get a copy of this message
Note Submitter: edvaldoalmeida at yahoo dot com ---- I noticed something interesting while using file() to read a huge text file. According to the memory available and to the record size, it will truncate the file without warnings. So, if you intend to read a really large text file line-by-line, you should try fgets() instead of file(), rewriting your loops.

« previous php.notes (#93337) next »