ifstream względna ścieżka pliku

#include <fstream>
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
}
Sorann