We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3965eae commit b22f2d2Copy full SHA for b22f2d2
Practise Programs/115copycontentoffile.cpp
@@ -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