Could someone tell me how to open a text file in notepad, without using the system() command?
Could someone tell me how to open a text file in notepad, without using the system() command?
Those who live by the sword get shot by those who don't.
I can C.
Compiler: gcc
Maybe this helps...
http://www.cprogramming.com/boardfaq.html#execs
I tried that before I asked, i only think it works with exes.
Those who live by the sword get shot by those who don't.
I can C.
Compiler: gcc
So it should work:
spawnl(P_WAIT, "notepad.exe", "notepad.exe", "C:\\temp\\test.txt", NULL);
Did not test this...