You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
AppFlow/CFDStruct/CFDStructMain/CFDStructMainUtils.cpp

21 lines
521 B
C++

#include "CFDStructMainUtils.h"
#include <direct.h>
#include <iostream>
#include <stdlib.h>
#include <string>
void CFDStructMainUtils::write(std::string path, std::string text) {
using namespace std;
char drive[_MAX_PATH], dir[_MAX_PATH], filename[_MAX_PATH], ext[_MAX_PATH];
_splitpath(path.c_str(), drive, dir, filename, ext);
_mkdir(dir);
freopen(path.c_str(), "w", stdout);
cout << text << endl;
fclose(stdout);
}
void CFDStructMainUtils::read(std::string path, std::string &text) {
}