Update filewrite