ref: ac9b5e75f6c6cd0171b0b86b9b109cc1d9639d5c
dir: /test/catfile.myr/
/* checks that we can read a data file. */
use std
const main = {args : byte[:][:]
var r
r = std.slurp("data/catfile-in")
match r
| `std.Ok dat: std.write(1, dat)
| `std.Fail msg: std.put("Failed to read file: %s\n", msg)
;;
-> 0
}