note 13409 added to function.ftruncate.php

From: Date: Fri, 15 Jun 2001 10:58:57 +0000
Subject: note 13409 added to function.ftruncate.php
Groups: php.notes 
Request: Send a blank email to php-notes+get-14373@lists.php.net to get a copy of this message
ftruncate does not alter the position of the file pointer. If you edit a file in-place by opening for reading and writing, reading the file, truncating and writing out again, you have to seek to the beginning before writing or you get as many NULLs as there were bytes in the original file, then your new content. http://www.php.net/manual/en/function.ftruncate.php

« previous php.notes (#14373) next »