filewriter is a package for writing things to files that other processes may also be writing to at the same time so it does not keep any open file handles longer than absolutely necessary.