Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You cannot avoid creating r4.txt if C program wants its input in the file (unless you modify the program). The other files can be eliminated via:

import os
result = os.open(f"./a.out {kk} r4.txt | awk '{print $NF}'").read()

You cannot avoid creating r4.txt if C program wants its input in the file (unless you modify the program). The other files can be eliminated via:

import os
result = os.open(f"./a.out os.popen(f"./a.out {kk} r4.txt | awk '{print $NF}'").read()

You cannot avoid creating r4.txt if C program wants its input in the file (unless you modify the program). The other files can be eliminated via:

import os
result = os.popen(f"./a.out {kk} r4.txt | awk '{print $NF}'").read()
'{{print $NF}}'").read()