I am not sure where to ask this question, but here goes. I am working on a program that outputs to a text file. I can do this without any issues.
My question is, how can I automatically open the text file at the end of the program to see its contents? It is tedious to switch to the directory and double-click it every time to open it.