tags:

views:

59

answers:

2

i have this encryption algorithm written in C++ , but the values that has to be encrypted are being taken input and stored in a file by a python program . Thus how can i call this c++ program from python?

A: 

The os.system function will invoke an arbitrary command-line from python.

Marcelo Cantos
+2  A: 

Look for the subprocess module. It is the recommended way to invoke processes from within Python. The os.system function is a viable alternative sometimes, if your needs are very simple (no pipes, simple arguments, etc.)

Dietrich Epp