File I/O
Zig's standard library provides high-performance file operations.
zig const file = try std.fs.cwd().createFile("test.txt", .{}); defer file.close();
try file.writeAll("Zig is fast!");
To read a file: zig const content = try std.fs.cwd().readFileAlloc(allocator, "test.txt", 1024 * 1024); defer allocator.free(content);