I am trying to write a programming language in zig and I have my main.zig file
but I get an error I couldnt really understand how to fix.
nixos@nixos ~/p/src (master)> zig run main.zig -- test.txt
main.zig:31:27: error: root source file struct 'Io' has no member named 'File'
const stdout = std.io.File.stdout().writer();
^~~~
/nix/store/26p2s5il6lrbyhsclrfhhh49vcwyvfv2-zig-0.15.2/lib/zig/std/Io.zig:1:1: note: struct declared here
const builtin = @import("builtin");
^~~~~
referenced by:
callMain [inlined]: /nix/store/26p2s5il6lrbyhsclrfhhh49vcwyvfv2-zig-0.15.2/lib/zig/std/start.zig:627:37
callMainWithArgs [inlined]: /nix/store/26p2s5il6lrbyhsclrfhhh49vcwyvfv2-zig-0.15.2/lib/zig/std/start.zig:587:20
posixCallMainAndExit: /nix/store/26p2s5il6lrbyhsclrfhhh49vcwyvfv2-zig-0.15.2/lib/zig/std/start.zig:542:36
2 reference(s) hidden; use '-freference-trace=5' to see all references