Beruflich Dokumente
Kultur Dokumente
int main()
{
/*Create New file: in just Write Mode:*/
fstream myFile;
cout<<"WRITING PURPOSE:"<<endl;
myFile.open("InfoBrother.txt",ios::out); //open file in writing mode:
if(!myFile)
{
cout<<"Error While Opening File: "<<endl;
}
else cout<<" Existing File Open Successfully for Reading & Appending
Purpose: "<<endl;
return 0;
} Closing File:
cout<<" Enter the Name of the file you want to read: "<<endl;
cin>>fileName;
return 0;
}
Copy and writing
/*Copying File Program: InfoBrother*/
main()
{
char File1[20],File2[20],ch; //variable to store file-Names
ifstream in_file; //Object for Input file
ofstream out_file; //Object for Output file
return 0;
}