/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* main.cpp :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: aortigos " << endl; return (0); } std::ifstream database("data.csv"); std::ifstream inputFile(argv[1]); if (!database || !inputFile) { cout << "Error: could not open file." << endl; return (1); } BitcoinExchange bc; try { bc.readDatabase(database); bc.execute(inputFile); } catch (std::exception &e) { std::cout << e.what() << std::endl; } return (0); }