apl/APL1.2/fichier/Hexadécimal.c
unknown d9949b5cb0 a
2022-01-14 06:54:18 +01:00

30 lines
318 B
C

#include<stdio.h>
int main(int argc, char *argv[]){
FILE* fluxLecture;
fluxLecture=fopen(argv[1],"r");
if(fluxLecture){
int buffer=0;
while(!feof(fluxLecture)){
fread(&buffer,sizeof(char),1,fluxLecture);
printf(".%x", buffer);
}
printf("\n");
fclose(fluxLecture);
}
return 0;
}