#include "dataManager.h" #include #include #include #include #include #include using namespace std; namespace fs = std::filesystem; void Table::CreateTB(string tb_name, string column, string data_type1, string column2, string data_type2, string data_of_type){ //string path = program_path /= tb_name; if (fs::exists(program_path) && fs::is_regular_file(tb_name + ".csv")) { cout << "!Failed to create table " << tb_name << " because it already exists." << endl; } else { //cout << "program_path: " << program_path << "/" << endl; //program_path /= tb_name; string pathInital = program_path; string path = program_path /= tb_name; //cout << "path: " << path << endl; ofstream newTable(path + ".csv"); cout << "Table " << tb_name << " created." << endl; newTable << column << "," << column2 << endl; newTable << data_type1 << "," << data_type2 << "(" <