popen - C++ system() function — How to collect the output of the issued command? -


मैं सी ++ system () function:

< Pre> int सिस्टम (const char * command);

मैं जारी आदेशों से मानक आउटपुट कैसे जमा करूं?

विशिष्ट होने के लिए, मैं जारी आदेश के आउटपुट को इकट्ठा करना चाहता हूं (उदाहरण के लिए, dir आदेश जारी करने से निर्देशिका लिस्टिंग आउटपुट)।

क्या आप निष्पादित कमांड के वापस मूल्य (जैसे "बाहर की स्थिति" के रूप में), या इसके आउटपुट के लिए देख रहे हैं ("क्या

अगर बाद में, उपयोग करें और इसके बजाय।

यदि पूर्व, सिस्टम () से वापसी मूल्य को देखो जानकारी की जानकारी का उपयोग करने के लिए इसका प्रयोग करें)।


Comments

Popular posts from this blog

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -