I would want to do something where the code would create a txt file and write something to it (Already know how to do that using fstream). After that I would want to open the file. I thought you could do it the same way you do system("Notepad.exe")
Hoiw about system ((string("C:\\Users\\")+/*enter the name of your profile on the computer*/+"\\Desktop\\example.txt")).c_str())?
But, filestreams are good too, with them you just need to say the name, not file path.