Update fileWriter