Question 2 : write file