Sunday, May 1, 2022

Open and close file #THEHACKER@

 #include <iostream>

#include <fstream>

using namespace std;

int main() {

fstream my_file;

my_file.open("my_file.txt ", ios::trunc);

 

return 0;

}

No comments:

Post a Comment

CONSTRUCTURE IN PARENT CLASS

class Parent {     public Parent()     {         System.out.println("Parent Constrcutor");     }              } class Child extend...