Windows API Reference – I/O

Core I/O Functions

Function Header Description
CreateFile Windows.h Creates or opens a file, device, pipe, or console.
ReadFile Windows.h Reads data from a file or input device.
WriteFile Windows.h Writes data to a file or output device.
CloseHandle Windows.h Closes an open object handle.
GetFileAttributes Windows.h Retrieves file attributes for a specified file.
SetFileAttributes Windows.h Sets attributes for a file or directory.
GetFullPathName Windows.h Retrieves the full path and file name for a specified file.
FindFirstFile / FindNextFile Windows.h Enumerates files in a directory.
CreateDirectory Windows.h Creates a new directory.
RemoveDirectory Windows.h Deletes an existing empty directory.

Advanced I/O Topics