How to write to a file in Zig 0.16.0 with the new Io interface, using a stack buffer or an allocator, and why you need to call flush() at the end.
How to read a file in Zig 0.16.0 with the new Io interface, in fixed-size chunks with a stack buffer, the whole file with an allocator, and line by line.
Different ways to read a file in Zig 0.15.2, in chunks with a stack buffer, all at once with an allocator, byte by byte and line by line.
Writing to a file in Zig 0.15.2 using a buffer on the stack or the heap, getting a writer interface and writing bytes to the file.