This class provides methods for the creation and use of a temporary file.
Important
This class and its members cannot be used in applications that execute in the Windows Runtime.
class CAtlTemporaryFile
Members
Public Constructors
Name  | 
Description  | 
|---|---|
The constructor.  | 
|
The destructor.  | 
Public Methods
Name  | 
Description  | 
|---|---|
Call this method to close a temporary file and either delete its contents or store them under the specified file name.  | 
|
Call this method to create a temporary file.  | 
|
Call this method to force any data remaining in the file buffer to be written to the temporary file.  | 
|
Call this method to get the current file pointer position.  | 
|
Call this method to get the size in bytes of the temporary file.  | 
|
Call this method to disassociate the file from the CAtlTemporaryFile object.  | 
|
Call this method to open an existing temporary file and position the pointer at the end of the file.  | 
|
Call this method to lock a region in the file to prevent other processes from accessing it.  | 
|
Call this method to read data from the temporary file starting at the position indicated by the file pointer.  | 
|
Call this method to move the file pointer of the temporary file.  | 
|
Call this method to set the size of the temporary file.  | 
|
Call this method to return the name of the temporary file.  | 
|
Call this method to unlock a region of the temporary file.  | 
|
Call this method to write data to the temporary file starting at the position indicated by the file pointer.  | 
Public Operators
Name  | 
Description  | 
|---|---|
Returns a handle to the temporary file.  | 
Remarks
CAtlTemporaryFile makes it easy to create and use a temporary file. The file is automatically named, opened, closed, and deleted. If the file contents are required after the file is closed, they can be saved to a new file with a specified name.
Requirements
Header: atlfile.h
Example
See the example for CAtlTemporaryFile::CAtlTemporaryFile.