Re: File pointers
| From: | Zef Hemel | Date: | Tue, 15 May 2001 11:35:56 +0000 |
| Subject: | Re: File pointers | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-52836@lists.php.net to get a copy of this message | ||
for afaik the only way is to
fgets($fp, 4096);
Now you moved the pointer 1 line :-)
Zef
"Steve Wade" <swadie@zipworld.com.au> schreef in berichtnieuws
MABBKCBDLHPGCKNPPFEKCEBKCGAA.swadie@zipworld.com.au...
> Any easy way to make the file pointer go up one line in a text file?
>
> (I am thinking of using ftell(), then working out the length of the line,
> and then fseek()?)
>
> Thanks :-)
>
> swadie
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Steve Wade
> Youth Outreach Coordinator
> Fusion Australia Ltd (Sydney North)
> ABN 26 001 273 105
> +61 2 9477 1110
>
>