note 7206 deleted from ftell by ronabop
| From: | ronabop@php.net | Date: | Mon, 02 Oct 2000 10:55:26 +0000 |
| Subject: | note 7206 deleted from ftell by ronabop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-5905@lists.php.net to get a copy of this message | ||
Deleting a line from a file:
After reading $line from $file do:
$pos = strlen($line);
fseek($file,-($pos+1),SEEK_CUR);
while ($pos > 0) {
$pos -= 1;
fputs($file, " "); }