File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#include<iostream>
2+
#include<fstream>
3+
using namespace std;
4+
5+
int main()
6+
{
7+
char ch;
8+
ifstream infile("stud.txt");
9+
ofstream outfile("BCD.txt");
10+
while(infile)
11+
{
12+
infile.get(ch);
13+
outfile.put(ch);
14+
}
15+
cout<<"Contents of File stud.txt copied in BCD.txt";
16+
17+
return 0;
18+
}

0 commit comments

Comments
 (0)