Get program's return data?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Muffinthief
    New Member
    • May 2007
    • 51

    Get program's return data?

    Well this is probably a noob question but here it goes.
    How does one go about getting the output from a program?
    I know you run system() but that just returns an integer.
    Is there perhaps a command similar to exec() in PHP?
    Or do you have to have the program you're running write to a file.

    Well thanks for the help.
  • gpraghuram
    Recognized Expert Top Contributor
    • Mar 2007
    • 1275

    #2
    Is this for C++ or in PHP?

    Raghu

    Comment

    • newb16
      Contributor
      • Jul 2008
      • 687

      #3
      popen .........

      Comment

      • Muffinthief
        New Member
        • May 2007
        • 51

        #4
        This was for C++, I was just using exec as an example of what I was looking for, and popen was it. So Thanks!

        Comment

        Working...