write2file
