If I use a system call
system("wc -l ts.txt");
do I have to direct the output to a file
system("wc -l ts.txt > lines.txt");
and then read the file
or is there away to direct it directly to a variable.
thanks
system("wc -l ts.txt");
do I have to direct the output to a file
system("wc -l ts.txt > lines.txt");
and then read the file
or is there away to direct it directly to a variable.
thanks