Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
If you want your program to run another program and use that program's output. The code below executes the MS-DOS command 'dir' (similar to Linux 'ls') and puts the output of this command in a std::vector. Then it displays the output on screen.
Assumes you have already declared the FileExists and FileToVector functions.
#include <cassert> |
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.