FileRead is returning an error 0x1610 = "couldn't open in write mode because 
db is read-only" when I read the last byte of data in the file. The previous 
reads succeed.  Why?  The code is below:

----------------------------------------------------------------------
Int32   numread;
char    buf[128], *pbuf;
Err     err;

pbuf = buf;
while( !FileEOF( hFile ) ) {
    numread = FileRead( hFile, pbuf++, 1, 1, &err );
        if( err != errNone ) {
                ErrAlert( err );
        }
}
----------------------------------------------------------------------

thanks

spike
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to