write good solution without file_number++; than file_number--; and again file_number++;