main.cpp 630 Bytes
#include <iostream>
#include <fstream>

int main(int ac, char **av)
{
  if (ac >= 4)
    {
      std::string folder_source = av[1];
      std::string folder_plan = av[2];
      std::string img_number = av[3];
      std::string file_dest;
      std::ofstream myfile;

      file_dest = folder_source+"/"+folder_plan+"/calibrations/calibration"+img_number+".result";
      myfile.open(file_dest.c_str());
      myfile << "Source folder = " + folder_source << std::endl;
      myfile << "Source plan = " + folder_plan << std::endl;
      myfile << "image number = " + img_number << std::endl;
      return (0);
    }
  return (1);
}