Re: file pointer

From: Date: Tue, 01 Jul 2003 19:52:05 +0000
Subject: Re: file pointer
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-153607@lists.php.net to get a copy of this message
On Tue, 01 Jul 2003 10:59:53 -0500, Kyle Babich wrote: >How would I set the file pointer to the very end of the last line of the >file? Assuming you are trying to append to the file you can do the following (open output append): $fHandle = fopen( "file.txt", "a" ); or you can fopen the file in read mode (or whatever) and then do an fseek... $fHandle = fopen( "file.txt", "r" ); fseek( $fHandle, 0, SEEK_END );

« previous php.general (#153607) next »