diff --git a/src/main.zig b/src/main.zig index a096f4f..005100b 100644 --- a/src/main.zig +++ b/src/main.zig @@ -89,9 +89,9 @@ pub fn doRepl(allocator: *std.mem.Allocator, args_it: anytype) !void { file_read.close(); } - var file = try std.fs.cwd().openFile(scri_path, .{ - .write = true, + var file = try std.fs.cwd().createFile(scri_path, .{ .read = false, + .truncate = true, }); defer file.close();