Standard Library

std.fs

Filesystem operations for reading, writing, and managing files and directories.

Exported functions

pub def read_file(file_path: String) -> String

Read a text file.

pub def write_file(file_path: String, content: String) -> Void

Write text to a file.

pub def create_dir(dir_path: String) -> Void

Create a directory.

pub def remove(file_path: String) -> Void

Remove a file or directory.

pub def read_dir(dir_path: String) -> List[String]

List all entries in a directory.