main.cpp 607 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 duration = av[3];
      std::string file_dest;
      std::ofstream myfile;

      file_dest = folder_source + "/" + folder_plan + "/analysis/analysis.result";
      myfile.open(file_dest.c_str());
      myfile << "Source folder = " + folder_source << std::endl;
      myfile << "Plan folder = " + folder_plan << std::endl;
      myfile << "duration = " + duration << std::endl;
      return (0);
    }
  return (1);
}