zig-raylib/src/plot.zig
jonathan santis c3cd0f5aa9 add logging
2024-11-28 10:40:05 +01:00

17 lines
313 B
Zig

const std = @import("std");
pub fn log(self : std.fs.File,data : []const u8) !void
{
try self.writeAll(data);
}
pub fn open(file : []const u8) !std.fs.File
{
const fileh = try std.fs.cwd().createFile(file,.{.read = true});
return fileh;
}
pub fn close(file : std.fs.File) void
{
file.close();
}