5.2 Using Files

The Win32 file functions enable applications to access files regardless of the underlying file system. However, their functionality may vary depending on the operating system in use. If you have questions about a specific function, consult the reference information on that function.

The examples in this section illustrate how to perform the following tasks:

Create, open, close, and delete files

Read from and write to files

Lock and unlock files

Set the file pointer

Get a unique temporary file name

Move files

Search for files

Create a directory

Copy files

Get and set file attributes