If you just use the system to open it with Notepad, there is a very simple method. Library system (constchar * cmd); This function is equivalent to executing the command line CMD internally. Header file: in stdlib.h
In response to the function, you add the code system to a button ("Notepad.exe's * txt"); Where * txt is the complete file path, if you can use the string formatting function, you can use the file opening dialog box, open these files with the replaced complete path, and the files will be opened, so you can choose which one.
You can look at the interface first and open a txt file with notepad during the cmd interview.