Finish off write to file for addcmd.