Need assistance opening a file from the console!

Hello, I've been recently looking to fix one of my programs, which is basically just a reminder that pops up every time I open Windows (I put the program in the startup folder).
Now my problem is not opening a file inside of the console, like you do with the fstream library, but rather open it outside of the console on the display.
I've been looking for a function like this for some time now, but I haven't been able to find anything, so I'm sorry if this question has been asked before!
Well if you mean for instance, open a text file in notepad instead of printing it to the console, you can use system( "notepad.exe yourFilePath.txt" ); assuming you're on windows
@H00G0 I've seen that while I was looking for a specific function for the program, but it seems that the system function doesn't really have a good reputation, because of its downsides. Still, I think it will suffice, plus I won't really share the said program with anybody since its just a reminder for a chore that I need to do.
Thank you!
Last edited on
Topic archived. No new replies allowed.