write all in file