Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit b22f2d2

Browse files
Add files via upload
1 parent 3965eae commit b22f2d2

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /