I need to call an executable program with Python, let's say:
C:\Program Files\ANSYS Inc\v140\ansys\bin\winx64\ANSYS140.exe
I would need to have a txt file (afshin.txt
) 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:
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');
Would you help me to do it in Python?