File I/O Functions
A version of this page is also available for
4/8/2010
The following table shows the file I/O functions with a description of the purpose of each.
Function | Description |
---|---|
Fills a buffer with random bytes. |
|
Returns the canonical form and the length of the canonical form of the specified path. |
|
Obtains file notification information. |
|
Closes an open object handle. |
|
Copies an existing file to a new file. |
|
Copies an existing file to a new file. |
|
Creates a new directory. |
|
Creates, opens, or truncates a file, COM port, device, service, or console. |
|
Deletes the source file after it copies the content of the source file to the destination file. |
|
Deletes a file from a file system. |
|
Closes the specified search handle. |
|
Stops change notification handle monitoring. |
|
Creates a change notification handle, and sets up initial change notification filter conditions. |
|
Searches a directory for a specified file or subdirectory. |
|
Searches a directory for a file with a specified name and attributes. |
|
Requests that the OS signal a change notification handle the next time it detects an appropriate change. |
|
Continues a file search from a previous call to the FindFirstFile function. |
|
Clears the buffers for the specified file and causes all buffered data to be written to the file. |
|
Obtains the following information about the amount of space available on a disk volume:
|
|
Obtains attributes for the specified file or directory. |
|
Obtains attribute information about the specified file or directory. |
|
Obtains information about the specified file. |
|
Obtains the size, in bytes, of the specified file. |
|
Obtains version information about a specified file. |
|
Checks whether the OS can obtain version information about a specified file. |
|
Fills in a STORE_INFORMATION structure with the size of the object store and the amount of free space currently in the object store. |
|
Creates a name for a temporary file. |
|
Obtains the path of the directory designated for temporary files. |
|
Locks the specified file for exclusive access by the calling process. |
|
Renames an existing file or a directory, including all its children. |
|
Reads data from a file, starting at the position indicated by the file pointer. |
|
Deletes an empty directory. |
|
Moves the end-of-file position for the specified file to the current position of the file pointer. |
|
Sets the attributes of a file. |
|
Moves the file pointer of an open file. |
|
This function unlocks a region in an open file. Unlocking a region enables other processes to access the region. |
|
Writes data to a file. |