in reply to Re^2: How to print the contents of system function to a .txt file
in thread How to print the contents of system function to a .txt file

when i run it using the "./" the generated .txt file has no output there.

Not what I asked, the command you're trying to execute using system, what happens when you type it into the shell?

  • Comment on Re^3: How to print the contents of system function to a .txt file