write2 file