使用system命令,如:system("copy > text.txt");建立空白的text.txtsystem("notepad.exe text.txt");就是使用notepad打开 text.txt 文件