shithub: mc

ref: 4db5274a2f6db10e31e11c503f36c85a98c65fbc
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.Err msg:	std.put("Failed to read file: {}\n", msg)
	;;
}