Write to files case1,case2,case3