Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int main()
- {
- FILE *entrada;
- FILE *salida;
- entrada = fopen("entrada.txt","r");
- if(entrada == NULL)
- {
- printf("ERROR");
- return 0;
- }
- salida = fopen("copia.txt","W");
- if(salida == NULL)
- {
- fclose(entrada);
- printf("ERROR");
- return 0;
- }
- char caracter;
- while((caracter = fgetc(entrada)) != EOF)
- {
- fputc(toupper(caracter),salida);
- }
- fclose(entrada);
- fclose(salida);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement