23 Mar
2005
23 Mar
'05
11:50 a.m.
Vladimir Prus wrote:
Sure, that's the complexity in creating temporary file. On Linux, you can
open(..., O_EXCL....)
but then how do you get ifstream out of file descriptor. Surely, there's
in g++ 3.2+, but for other compilers one has to find other solutions. I indend to try, but not now.
Would it be so bad to use the platform independent way to create the file, and if that suceeeds, close it and then re-open it using the ofstream? Cheers Russell