Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- FILE * pInFile, * pOutFile;
- char ch;
- char inF[100], outF[100];
- scanf("%s",inF);
- scanf("%s",outF);
- pInFile = fopen(inF,"r");
- pOutFile = fopen(outF,"w");
- if (pInFile == NULL || pOutFile == NULL ) perror("Erro na abertura do arquivo");
- else
- {
- while(1)
- {
- ch = fgetc(pInFile);
- if (ch==EOF) break;
- //printf("%c", ch);
- fputc(toupper(ch),pOutFile);
- }
- }
- fclose(pInFile);
- fclose(pOutFile);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement