[phobos] [D-Programming-Language/phobos] e3e9f2: Implement issue# 13996. Add File.scratchFile.

GitHub via phobos phobos at puremagic.com
Mon Mar 30 19:43:52 PDT 2015


  Branch: refs/heads/master
  Home:   https://github.com/D-Programming-Language/phobos
  Commit: e3e9f2965f438170157338767700bc1d7292dd67
      https://github.com/D-Programming-Language/phobos/commit/e3e9f2965f438170157338767700bc1d7292dd67
  Author: Jonathan M Davis <jmdavisProg at gmx.com>
  Date:   2015-03-30 (Mon, 30 Mar 2015)

  Changed paths:
    M std/stdio.d

  Log Message:
  -----------
  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.


  Commit: 8a65ff8db444f35f6322debbb970166b8c587beb
      https://github.com/D-Programming-Language/phobos/commit/8a65ff8db444f35f6322debbb970166b8c587beb
  Author: Martin Nowak <code at dawg.eu>
  Date:   2015-03-31 (Tue, 31 Mar 2015)

  Changed paths:
    M std/stdio.d

  Log Message:
  -----------
  Merge pull request #2956 from jmdavis/tempFile

Implement issue# 13996. Add File.tempFile.


Compare: https://github.com/D-Programming-Language/phobos/compare/5d285a7fe137...8a65ff8db444


More information about the phobos mailing list