Import std.io.temp
TempFile
class
Public Class TempFile
A new, empty file of the program's own, which Close deletes.
Examples
Local file = Try TempFile()
Try File.WriteText(file.Path, "scratch")
Expect(File.Exists(file.Path))
Try file.Close()
Expect(!File.Exists(file.Path))-
Where the file is.
-
Makes one named
prefixand six letters and digits. -
Deletes the file, which a second Close leaves alone. One that fails can be tried again.
Report an issue with this page or with FutureBlitz on GitHub.