N
NewYorker
Hi,
I'm looking for code to do the following. Bascially, "System" shell out and
execute the command and return the stdout in result. You know a link OR
know the trick, please let me know.
// result contains the stdout of the command
char* result=System("ls -l");
char* result=System("cat myFile.txt");
TIA.
I'm looking for code to do the following. Bascially, "System" shell out and
execute the command and return the stdout in result. You know a link OR
know the trick, please let me know.
// result contains the stdout of the command
char* result=System("ls -l");
char* result=System("cat myFile.txt");
TIA.