22 lines
307 B
C
22 lines
307 B
C
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
|
|
int main(void){
|
|
FILE *fic = fopen("text.txt", "r");
|
|
char lettre[256];
|
|
|
|
if(fic == NULL){
|
|
exit(1);
|
|
}
|
|
|
|
while(fgets(lettre, 255, fic) != NULL){
|
|
printf("%s", lettre);
|
|
}
|
|
|
|
printf("\n");
|
|
|
|
fclose(fic);
|
|
|
|
return 0;
|
|
}
|