Path.tempFile

Returns a temporary file create by std.stdio.File.tmpfile method.

Note that the created file has no name.

struct Path
static
tempFile
()

Examples

import dshould;

auto f = Path.tempFile;
f.write("Hello World\n");
f.flush();
f.rewind();
f.readln().should.equal("Hello World\n");

Meta