So I've wrote a program that asks the user for a file output("test.txt, etc.) and then the program writes to that document. What I would like to do is, after the program has finished writing to the document, I want to open that document using c++. I've been looking around for it and have figured out how to open a program like mspaint, but I want to be able to open the document I write to. Any helped is appreciated.
Okay so this just shows what it printed to the document on my c++ executable. I want it to actually open, lets say it's a .txt file, the notepad file I just wrote to, so it will open the notepad program and display what I just wrote to the file. Or, .xls - excel, or .docx - msword.