我正试图利用 st子:如果已经存在,则要创建档案。
std::fstream my_stream
my_stream.open("my_file_name",std::fstream::binary | std::fstream::in | std::fstream::out);
if(!my_stream)
std::cout<<"error"<<strerror(errorno);
I get this result: "No such file or directory."
How can I create the file in this case?