Answered step by step
Verified Expert Solution
Question
1 Approved Answer
C language Please R.2 Write a program that will open a file named as testfile.txt. [20 Marks] A. Your program should open the file testfile.txt
C language Please
R.2 Write a program that will open a file named as testfile.txt". [20 Marks] A. Your program should open the file "testfile.txt" in reading and display the error if file not open. (5) B. Your program should count and display the number of uppercase characters in the file testfile.txt"(5) C. Your program should count and display the number of lowercase characters in the file "testfile.txt". () D. Write a separate piece of code that should open another file named "destinationFile.txt" in write only mode and copy contents of the testfile.txt" in it character by character. (5) Note: use character library to check whether the alphabet is lower or upperStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started