mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 22:33:08 +00:00
11 lines
305 B
Zig
11 lines
305 B
Zig
const std = @import("std");
|
|
|
|
pub fn main() !void {
|
|
var args = try std.process.argsWithAllocator(std.heap.page_allocator);
|
|
_ = args.skip();
|
|
const filename = args.next().?;
|
|
const file = try std.fs.createFileAbsolute(filename, .{});
|
|
defer file.close();
|
|
try file.writeAll(filename);
|
|
}
|