Use fwrite instead of write to not bypass caching stdio. Other fmt's print function are too much of a footgun to use.