It is necessary through the program to open a text file, but not for work in the program, but just for viewing. For example just run in notepad. Is there any function?

  • If you are given an exhaustive answer, mark it as correct (a daw opposite the selected answer). - Nicolas Chabanovsky

2 answers 2

You can use WinExec

as parameters notepad path\to\file

    system("notepad.exe filename")

    If the extension is registered in the system, then just the file name will suffice:

    system("filename.txt")

    • @AMANOR Well, if you are satisfied with the answer - put a bird :) - Harry