#include <stdio.h>
#include <stdlib.h>

int main(void){
    FILE *fic = fopen("text.txt", "r");
    int lettre = 0;

    if(fic == NULL){
        exit(1);
    }    

    while((lettre = fgetc(fic)) != EOF){
        printf("%c", lettre);
    }
    
    printf("\n");

    fclose(fic);

    return 0;
}
