From: Suman Cherukuri (suman_at_[hidden])
Date: 2005-09-07 15:49:01
> -----Original Message-----
> From: boost-bounces_at_[hidden] [mailto:boost-bounces_at_[hidden]]
> On Behalf Of Tom
> Sent: Wednesday, September 07, 2005 1:21 PM
> To: boost_at_[hidden]
> Subject: Re: [boost] temp file
> On Wed, 7 Sep 2005, Suman Cherukuri wrote:
> > Along the lines (temp file), does it make sense to add support for
> > temp files in the default temp folder based on the OS (and support to
> > override the default) with a unique name automatically generated?
> > --Suman
> Sometimes programs need to create any file to put there same output
> and give this file ( for example by file name ) to another program
> or library. It isn't of course perfect solution, but why not if you
> would need it ?
> This wrapper of C-function : mktemp() , frees you from duty to clean up.
> (removing files)
mkstemp()is recommended over mktemp to avoid file name racing. Even mkstemp
is not ideal as it cannot take a const string for filename template etc.
Also, we need to use something else on windows. mktemp() and mkstemp() are
not natively supported on Windows but there are some 3rd party
installations. If there is an equivalent in Boost which is platform
independent and embedded within Filesystem namespace, it'd be very useful.
> > >
> > >
> > > Thanks
> > > Tom
> > > _______________________________________________
> > > Unsubscribe & other changes:
> > > http://lists.boost.org/mailman/listinfo.cgi/boost
> > _______________________________________________
> > Unsubscribe & other changes:
> Unsubscribe & other changes:
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk