Current location - Training Enrollment Network - Books and materials - Txt file of library system
Txt file of library system
The text file read in the above code is the content, but it is stored in the array PBUF, and the content of the file is output by MessageBox. Theoretically, yes. I don't know the program compilation yet. The landlord can tell us the result.

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.