bundle_css.ha (279B)
1 use fmt; 2 use io; 3 use os; 4 5 fn tacker_css(inputpath: str, ofile: io::handle) void = { 6 const ifile = os::open(inputpath)!; 7 defer io::close(ifile)!; 8 // TODO 9 for (true) { 10 let buf: [1]u8 = [' ']; 11 if (io::read(ifile, buf) is io::EOF) return; 12 io::writeall(ofile, buf)!; 13 }; 14 };