Rewrite file files