.zig/lib/std/Io/File.zig:225:16: error: no field or member function named 'fileWriteStreaming' in 'Io.File'
return file.fileWriteStreaming(io, buffer);
It is unclear what you are trying to do.
What do you want to do?
Do you want to write to a file?
const std = @import("std");
const Io = std.Io;
pub fn main() !void {
// NOTE truncate needs to be false if you want to append
const example = try std.fs.cwd().createFile("example.txt", .{ .truncate = false });
defer example.close();
var buffer: [512]u8 = undefined;
var writer = example.writer(&buffer);
try writer.seekTo(try writer.file.getEndPos()); // NOTE set position to end (if you want to append)
const out: *Io.Writer = &writer.interface;
try out.print("hello\n", .{});
// or
try out.writeAll("hello\n");
try out.flush();
}