Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int main()
- {
- FILE* p_arquivo = NULL;
- char letra;
- //abre o arquivo
- p_arquivo = fopen("MD5SUMS", "r");
- if (p_arquivo == NULL)
- {
- printf("Erro na abertura do arquivo\n");
- exit(1);
- }
- while(1){
- letra = fgetc(p_arquivo);
- if (feof(p_arquivo))
- break;
- printf("%c", letra);
- }
- //fecha o arquivo
- fclose(p_arquivo);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement