rendered paste body#include <Python.h>#include <string>#include <fstream>#include <iostream>#include <math.h>using namespace std;static PyObject * checksum(PyObject *self, PyObject *args){ char *fichier; if (!PyArg_ParseTuple(args, "s", &fichier)) return NULL; ifstream liste_codes(fichier, ios::in); // Ouvre le fichier des codes en lecture string part1 = "verif_"; string part2 = fichier; string res = part1 + part2; // Creation du nom du fichier contenant le resultat ofstream resultat(res.c_str(), ios::out | ios::app); //Ouvre le fichier contenant les résultats en mode append