1-) Write a code to do following operationsa-print the contents of filewrite a function to print the contents of a given file on screen. Your function prototypeshould be in given format.void PrintFileContent(FILE* fptr)b-copy contents of one file to another filewrite a function to copy contents of one file to another file. Convert all characters intouppercase while copying the content. You are allowed to use toupper() function in ctypelibrary. Your function prototype should be in given format.void copy_file(FILE* fptr1,FILE* fptr2)c- count the Number of Characters in a Filewrite a function to count the Number of Characters in a File. Your function prototypeshould be in given format.int findNumberofChar(FILE* fptr)Please design your main.c file as follow1- Open a text file to read in your directory.2- Create an empty text file for writing and reading in same directory.3- Check if both files are opened.4- Print the contents of first file by calling PrintFileContent function.5- Call copy_file function to copy contents of first file to empty file.Electronics Engineering INF211Edition: 25.12.20206- Call findNumberofChar function to count the Number of Characters in the secondfile.7- Write the number of characters in the second file into the same file.8- Print the contents of second file by calling PrintFileContent function.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here