
12 Oct
2011
12 Oct
'11
12:13 p.m.
On Wed, Oct 12, 2011 at 2:11 PM, Stewart, Robert <Robert.Stewart@sig.com> wrote:
It is enough to have a function that creates a zero-length, temporary file and returns its pathname. That probably fits better with Filesystem's design anyway. Such a function would have to implement a loop that calls unique_path(), tries to create a file with that pathname, and repeats some number of times until the creation succeeds. Then, it would close the file and return the pathname. That code is non-trivial and would be a helpful addition.
That doesn't seem right either. It shouldn't be necessary to close and reopen the file. Olaf