APL/APL1.2/TP05/numerotation.c

15 lines
312 B
C
Raw Normal View History

2021-12-07 15:08:24 +01:00
#include<stdio.h>
#include<stdlib.h>
int main(int argc, char * argv[]) {
FILE* flux;
flux = fopen(argv[1], "r");
fseek(flux, 0L, SEEK_END);
long size = ftell(flux);
fclose(flux);
fprintf(stdout, "La taille du fichier est de : \x1B[38;2;125;125;255m%ld\x1B[37m octets.\n", size);
return EXIT_SUCCESS;
}