You are correct.  In fact, simply r+ works; I just tried it.
Thanks
----- Original Message ----- 
From: "Ford, Mike [LSS]" <[EMAIL PROTECTED]>
To: "'Rick Emery'" <[EMAIL PROTECTED]>; "PHP" <[EMAIL PROTECTED]>
Sent: Wednesday, October 30, 2002 8:05 AM
Subject: RE: [PHP] File Random Access


> -----Original Message-----
> From: Rick Emery [mailto:[EMAIL PROTECTED]]
> Sent: 30 October 2002 13:46
>
> I never noticed before...there is no easy way to perform
> random-access read and WRITE on a
> file.
>
> I vote/recommend/suggest that this most basic functionality
> be added to the next release
> of PHP.  This would not be an enhancement; rather, it is
> correcting a serious flaw.
>
> Or am I missing something????

I haven't tested this, so I may be missing something, but doesn't
fopen('filename', 'rb+') or fopen('filename', 'ab+') allow for this?

Cheers!

Mike

---------------------------------------------------------------------
Mike Ford,  Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS,  LS6 3QS,  United Kingdom
Email: [EMAIL PROTECTED]
Tel: +44 113 283 2600 extn 4730      Fax:  +44 113 283 3211 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to