add writer totle file