store system() call rslt in string

April 13, 2009 at 00:14:28
Specs: Linux i686
Hi
can any one tell me how to store a system() call result in a string in c++
like as , string s = system("pwd");
As such this dosn't work as the pwd is not stored in string s.
Is there any other way to store the system() call result in a string. Plz reply if any one could help me to solve that problem .
thanks.

See More: store system() call rslt in string

Report •


#1
April 13, 2009 at 04:53:18

Report •

#2
April 13, 2009 at 06:35:30

Report •

Related Solutions


Ask Question