shithub: mc

ref: 3f457c0c972ce2cdb413a76a05da874d998f2cc2
dir: /test/catfile.myr/

View raw version
/* 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: {}\n", msg)
	;;
}