shithub: mc

ref: 064b5d2b2f9c54fcbd0e928d75253032e51f7e6f
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
}