cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Error in ftpget.c example?

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Tue, 19 Sep 2006 09:12:48 -0700

On Tue, Sep 19, 2006 at 12:04:32PM -0300, Juan Manuel Lopez Baio wrote:
> Sorry, my mistake; it's checked in main() and closed if necessary.
> Aaaanyways, maybe it should be closed in the my_fwrite so it is solely
> responsible for the file handling.

There's no way for my_fwrite to know when the file is finished downloading,
so it can't know when to close it. It could open and close it each time,
but that would be really inefficient.

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
Received on 2006-09-19