I am a beginner to python, and I have no idea if this seems to be a doable thing.
I have a simple loop in python that gives me all the files in the current directory. What I want to do is to execute a C++ code I wrote before on all those files in the directory from python
The proposed python loop should be something like this
import os
for filename in os.listdir(os.getcwd()):
print filename
(Execute the code.cpp on each file with each iteration)
Is there any chance to do this?