I have the task of opening a file with a c program and having all the letters be capatilized in the opened file. First issue is that when I attempt to open the file I don't actually see the file anywhere, how can I fix that? Second is where do I start for capitalizing all the letters contained in the opened file? Any help would be appreciated.
my code that should allow me to read a file.Code:#include <stdlib.h> #include <stdio.h> int main () { FILE *inFile; char fileName[13]; printf("\nEnter a file name:"); gets(fileName); inFile = fopen(fileName, "r"); if (inFile == NULL) { printf("\n The file cannot be opened."); printf("\nPlease check that the file currently exsists."); exit(1); } printf("\nThe file has been successfully opened for reading:"); system ("PAUSE"); return 0; }