Python calling an executable program
<p>I need to call an executable program with Python, let's say: </p>

<pre><code>C:\Program Files\ANSYS Inc\v140\ansys\bin\winx64\ANSYS140.exe
</code></pre>

<p>I would need to have a txt file (<code>afshin.txt</code>) run with this executable application and then get the output file which is a txt file as well. In MATLAB for example it would be:</p>

<pre><code>dos '"C:\Program Files\Ansys Inc\v121\ANSYS\bin\intel\ansys121.exe" -p AA_T_A -b -i afshin.txt -o file01.out' 
mod_1 = load('output_res.txt');
</code></pre>

<p>Would you help me to do it in Python?</p>
