open a file using open method in c++

How to Open and Close a File in C++ 0

How to Open and Close a File in C++

Program 1 // open file using Open Method for read #include <iostream> #include <fstream> #include <string> using namespace std; int main() { fstream fout; system(“cls”); fout.open(“H://dataflair//studentname.txt”,ios::app); //open a file in write mode) fout<<“Vishal Verma”;...