创建文件的方法,其实也就是c++创建文件夹的一些方法,适用在Qt中
1、system 函数
//头文件
#include <iostream>
using namespace std;
string folderPath = "D:\\database";
//创建文件夹1
string command;
command = "mkdir -p " + folderPath;
system(
创建文件的方法,其实也就是c++创建文件夹的一些方法,适用在Qt中
1、system 函数
//头文件
#include <iostream>
using namespace std;
string folderPath = "D:\\database";
//创建文件夹1
string command;
command = "mkdir -p " + folderPath;
system(