Files and Directories | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 2

Files and Directories

can someone tell me ,how to include a file from another directory(not the presently working directory) in C/C++.

17th Jun 2019, 3:25 AM
Deepak Chekuri
1 ответ
+ 2
c++ #include <iostream> #include <fstream> using namespace std; int main() { ofstream MyFile; MyFile.open("test.txt"); MyFile << "Some text! \n"; MyFile.close(); }
17th Jun 2019, 4:12 AM
**🇦🇪|🇦🇪**
**🇦🇪|🇦🇪** - avatar