shithub: mc

ref: 675736f3cad40e5d1a69d0e14d56542785fe5e8a
dir: /lib/bio/test/bio-create.myr/

View raw version
use std
use bio

const main = {
	var f

	std.mkdir("tmpout", 0o755);
	match bio.create("tmpout/test-create", bio.Wr, 0o644)
	| `std.Ok bio:	f = bio
	| `std.Fail m:	std.fatal("Failed to open file: {}\n", m)
	;;
	bio.close(f)
}