Invoking External Programs

Workaround if popen() is not available

Contents

If popen is not available then this technique might be useful. This shows an example of piping output from a command into a temporary text file called ‘blah.txt’ and then reading it afterwards:

Leave A Comment?

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.