Answer to Question #214039 in C++ for Hemambar

Question #214039

Write a program to convert the text file contents to Upper-case & write the contents into another

file.


1
Expert's answer
2021-07-18T01:24:34-0400
#include<iostream>
#include<fstream>
#include<string.h>
using namespace std;
int main()
{
     ifstream in;
     in.open("first.txt");
     ofstream out;
     out.open("second.txt");
     char c;
     while(!in.eof())
     {
        c=toupper(c);
        out<<c;
     }
     in.close();
     out.close();
     return 0;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS