On Thu, May 23, 2002 at 02:25:48PM -0700, Greg Stein wrote: > Oof... needlessly complicated. Just use apr_file_read_full(). It will return > all the bytes that you ask for, unless an error condition occurs (EOF). > There is no need to do any looping.
You'd have to do a stat() on the file to get the file size as we don't know how much data we need. According to the docs, it says that it is not possible for bytes to be read and an APR_EOF error to be returned. That seems like it is conflict with the Unix impl though. (The Unix impl could return bytes and APR_EOF.) -- justin
