summaryrefslogtreecommitdiff
path: root/zig-embed/main.zig
blob: a1089b95c168759a10afce509761f24a2b06c19d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
const std = @import("std");

pub fn main() !void {
    const data: []const u8 = @embedFile("max.txt");

    // Print the whole file out.
    std.debug.print("{s}\n", .{data});

    // Loop over each byte.
    for (data) |c| {
        std.debug.print("0x{X:0>2} ", .{c});
    }
    std.debug.print("\n", .{});
}