The programming implementation first reads the string from the standard input, then saves the string to the file file1, and finally saves the contents of the file file1 to the file2.