CPP IFstream

#include <iostream>
#include <fstream>

int main(){
	std::string path = "data.txt";
    ifstream file(path);
    
    if(file.is_open()){
    	std::cout << "File is open"<< std::endl;
    } else std::cout << "File did not open" << std::endl;
    
  return 0;
}
Maou Shimazu