Move input to cwd
This commit is contained in:
parent
8a7dab06d2
commit
6d677300ee
2 changed files with 3 additions and 2 deletions
3
2020/zig/.gitignore
vendored
3
2020/zig/.gitignore
vendored
|
@ -1,4 +1,5 @@
|
||||||
zig-cache/
|
zig-cache/
|
||||||
zig-out/
|
zig-out/
|
||||||
data/
|
src/sample
|
||||||
|
src/input
|
||||||
build_runner.zig
|
build_runner.zig
|
||||||
|
|
|
@ -3,7 +3,7 @@ const tokenize = std.mem.tokenize;
|
||||||
const parseInt = std.fmt.parseInt;
|
const parseInt = std.fmt.parseInt;
|
||||||
const print = std.debug.print;
|
const print = std.debug.print;
|
||||||
|
|
||||||
const data = @embedFile("../data/day01.txt");
|
const data = @embedFile("input");
|
||||||
|
|
||||||
pub fn main() !void {
|
pub fn main() !void {
|
||||||
var it = tokenize(u8, data, "\n");
|
var it = tokenize(u8, data, "\n");
|
||||||
|
|
Loading…
Reference in a new issue