📌  相关文章
📜  ifstream 相对文件路径 - C++ 代码示例

📅  最后修改于: 2022-03-11 14:44:50.606000             🧑  作者: Mango

代码示例1
#include 
int main() {
    //NOTICE : this path is relative to the folder where you run your binary
    std::ifstream ifs("data/myfile.txt");
    // Do something with the file
}