shithub: mc

ref: 377381aa9dcdc3a004faac1b06aa79d0e4fa9c98
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.Err m:	std.fatal("Failed to open file: {}\n", m)
	;;
	bio.close(f)
}