nativity/src/fs.zig
David Gonzalez Martin 611e611cab sema for main function
2023-09-29 18:22:34 -06:00

8 lines
273 B
Zig

const std = @import("std");
const Allocator = std.mem.Allocator;
pub fn readFile(allocator: Allocator, file_relative_path: []const u8) ![]const u8 {
const file = try std.fs.cwd().readFileAlloc(allocator, file_relative_path, std.math.maxInt(usize));
return file;
}