Write out special stats to a file