Files API

Files API Overview

The Files API provides a programmatic way to interact with files and folders in Windows.

It allows you to perform operations such as:

  • Creating, deleting, and renaming files and folders.
  • Accessing file metadata (name, size, last modified date).
  • Working with file content.

Key Concepts

File Object: A representation of a file, containing information about its attributes.

Folder Object: A representation of a folder, enabling operations related to managing folders.

File System: The underlying structure for organizing files and folders on a storage device.

API Reference

Name Description Link
File.Create() Creates a new file. https://learn.microsoft.com/en-us/windows/msdn/api/file.create
File.Delete() Deletes a file. https://learn.microsoft.com/en-us/windows/msdn/api/file.delete
File.Exists() Checks if a file exists. https://learn.microsoft.com/en-us/windows/msdn/api/file.exists
File.Open() Opens a file for reading or writing. https://learn.microsoft.com/en-us/windows/msdn/api/file.open