I want to add the lines outputted by the code below into a vector<string>
. Is there an easy way to do this directly without having to save the output to a text file then parsing the file?
char command[50] = 'ls - l';
system(command)
I want to add the lines outputted by the code below into a vector<string>
. Is there an easy way to do this directly without having to save the output to a text file then parsing the file?
char command[50] = 'ls - l';
system(command)