#include <Utils.h>
The associated file is automatically deleted upon object destruction.
Public Member Functions | |
TempFile (bool anonymous=true) | |
Create an empty, temporary file, and open it for reading and writing. | |
Public Attributes | |
string | filename |
The filename. | |
FILE * | handle |
The file handle. |
Passenger::TempFile::TempFile | ( | bool | anonymous = true |
) | [inline] |
Create an empty, temporary file, and open it for reading and writing.
anonymous | Set to true if this temp file should be unlinked immediately. Anonymous temp files are useful if one just wants a big not-in-memory buffer to work with. |
SystemException | Something went wrong. |
The filename.
If this temp file is anonymous, then the filename is an empty string.
The file handle.