15 lines
312 B
C
15 lines
312 B
C
#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;
|
|
}
|
|
|