On Thu, Oct 03, 2002 at 03:04:07PM -0400, Rob Das wrote:
> Is there a reasonable check for memory I can use to see what's available
> compared to the file size?

I don't know of a portable method for checking your memory.  However, even
if there were a way, why would you want to go that route?  I suspect you
want to check your memory, determine if there's enough, then, if so, read
the entire file into memory.  Not only does this involve more complicated
code, what happens if something allocates memory between when you checked
and when you read the file?

I would suggest you simply program defensively; assume the file is too large
to read into memory and go from there.


Michael
--
Administrator                      www.shoebox.net
Programmer, System Administrator   www.gallanttech.com
--

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to