I just check for fileErrEOF and break the loops. If there is another error I display it to the user (incase it is something in the users power, i.e. no space, etc.) and then break the loops. Once broken I clean up (I should also probably delete the vfs file if unsuccessful?? Any suggestions??).
-Donald "Henk Jonas" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Donald C. Kirker wrote: > > > Problem solved!!!!! > > great :-) > > > By the way, should I leave the "if (FileEOF(cache)) break; > > FileClearerr(cache);" in there? FileRead seems to return errFileEOF (or > > something like that) on its own, I just don't know if this is specific to > > any OS release. > > I would just exit if FileRead returns less than the buffer size. I would > not check explicit for other errors. If FileRead returns less than the > buffer size, it means the file is coming to an end :-) > > Regards > Henk > > -- > ------------------------------------------------------------------------- > Henk Jonas [EMAIL PROTECTED] > Palm OS ® certified developer > > Please contact me, if you need an off-site contract worker. > ------------------------------------------------------------------------- > -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
