[Issue 13996] Function for returning a temporary file with a randomly generated name where the name can be accessed
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Mon Mar 30 19:43:54 PDT 2015
https://issues.dlang.org/show_bug.cgi?id=13996
--- Comment #10 from github-bugzilla at puremagic.com ---
Commits pushed to master at https://github.com/D-Programming-Language/phobos
https://github.com/D-Programming-Language/phobos/commit/e3e9f2965f438170157338767700bc1d7292dd67
Implement issue# 13996. Add File.scratchFile.
This adds a File.scratchFile, which generates a random file name and
returns an open std.stdio.File for it. Unlike with File.tmpfile, it's a
normal file which is _not_ deleted when the file is closed, and you
actually have access to the file's name, which is necessary in many
situations - particularly when writing unit tests that need to write to
a file and then read from it.
https://github.com/D-Programming-Language/phobos/commit/8a65ff8db444f35f6322debbb970166b8c587beb
Merge pull request #2956 from jmdavis/tempFile
Implement issue# 13996. Add File.tempFile.
--
More information about the Digitalmars-d-bugs
mailing list