Working file rewriter