Qore FsUtil Module Reference 1.3
Loading...
Searching...
No Matches
FsUtil::TmpFile Class Reference

Class implementing a user friendly temporary file creation; the file is removed in the destructor. More...

#include <FsUtil.qm.dox.h>

Public Member Methods

 constructor (*string prefix, *string suffix, *string path)
 Creates and opens a unique temporary file and returns its absolute path as well as its File object. More...
 

Detailed Description

Class implementing a user friendly temporary file creation; the file is removed in the destructor.

Member Function Documentation

◆ constructor()

FsUtil::TmpFile::constructor ( *string  prefix,
*string  suffix,
*string  path 
)

Creates and opens a unique temporary file and returns its absolute path as well as its File object.

Parameters
prefixprefix to be used in the newly created file name
suffixsuffix to be used in the newly created file name
pathpath to a dir in which the caller wants to create the new file; if not provided, standard temp location will be used