execl
gedit <the name of your logfile>
gedit
int main(int argc, char *argv[]) { system("gedit hello.c"); return 0; }
execlp("/usr/bin/gedit","gedit","hello.c",NULL);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)