Step Into Labs

Step Into C · Lesson 25 · Win32 in Depth

Files & Directories

CreateFileW dispositions, sizes and seeking, listing directories, moving and deleting.

Part of Step Into C. The full lesson, its missions and the real compiler and debugger are in the course. Try a free lesson first to see how it works.

Files, directories, pipes, devices and consoles are all opened with CreateFileW. The creation disposition decides what happens when the file does or doesn't exist:

In this lesson

Missions

  1. Dispositions
  2. Size and seek
  3. List a directory
  4. Move and delete