-2

my question is how can i create a folder with c++. Thanks for any helps!

this is how far i got:

#include <iostream>
#include <fstream>
using namespace std;

int main()
{
    fstream myFile;
    myFile.open("C:\\PlatForm.folder", ios::out);
}
return 0;
}
πάντα ῥεῖ
  • 85,314
  • 13
  • 111
  • 183
  • Copying the literal title of your question into Google will give many results with examples how to do it on the first page. – CherryDT May 30 '22 at 16:24
  • `fstream` stands for **file stream**, it only works with **files**, you can't create/open a **folder** with it. – Remy Lebeau May 30 '22 at 23:32

0 Answers0