Update fileWriter
Merge pull request #1 from jeremy12/master

update changes