Old stuff/ecole_etude_fac_de_pau/c/file.c
(Deskargatu)#include <stdio.h>
int main(int argc,char *argv[])
{
FILE *fp;
int c;
printf("Debut:\r\n");
char path[50] = "file.c";
if ((fp = fopen(path,"r")) == NULL)
{
fprintf(stderr,"Impossible de lire le fichier\r\n");
return(1);
}
while((c = fgetc(fp)) != EOF)
{
printf("%c",c);
}
fclose(fp);
return(0);
}