changing old to new at the end of cycle
+ print_file(const char * path); print old and new output