Preventing std::ifstream from creating an empty file

前端 未结 0 639
半阙折子戏
半阙折子戏 2020-12-11 06:02

The following code will create an empty file if a file with the supplied path is not found:

std::ifstream file;
file.open(path, std::ios::in | std::ios::binar         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题