shithub: mc

ref: 30ae6dbd5eb7c7f8c9c76a32723dd33c5f90978b
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.Success dat: 	std.write(1, dat);;
	`std.Failure msg:	std.put("Failed to read file: %s\n", msg);;
	;;
	-> 0
}