+ 2
Files and Directories
can someone tell me ,how to include a file from another directory(not the presently working directory) in C/C++.
1 Respuesta
+ 2
c++
#include <iostream>
#include <fstream>
using namespace std;
int main() {
ofstream MyFile;
MyFile.open("test.txt");
MyFile << "Some text! \n";
MyFile.close();
}