+ 3

c++ system commands

Hello All, What is the way to posses data made by system() function in C++ to program's variable and process it next? Is it only possible to prepare system's function direct to file and then read from the file? For example:: system( "ping 192.168.1.1 >> file.txt"); then read from file... Can I omit creating temporary file? Thanks in advance!

21st Feb 2018, 3:55 PM
Ɓukasz Szczyglewski
Ɓukasz Szczyglewski - avatar
3 Answers
23rd Feb 2018, 10:53 PM
Freetoast
Freetoast - avatar
0
As far as not creating a temporary file you could use a macro.
23rd Feb 2018, 10:54 PM
Freetoast
Freetoast - avatar
0
I'll explore handles and windows.h library
23rd Feb 2018, 11:15 PM
Ɓukasz Szczyglewski
Ɓukasz Szczyglewski - avatar