aboutsummaryrefslogtreecommitdiff
path: root/test/standalone/run_output_caching/main.zig
blob: 9786101d325ebf6098dc4416e47257279febdf05 (plain)
1
2
3
4
5
6
7
8
9
10
11
const std = @import("std");

pub fn main() !void {
    const io = std.Io.Threaded.global_single_threaded.ioBasic();
    var args = try std.process.argsWithAllocator(std.heap.page_allocator);
    _ = args.skip();
    const filename = args.next().?;
    const file = try std.Io.Dir.cwd().createFile(io, filename, .{});
    defer file.close(io);
    try file.writeStreamingAll(io, filename);
}