30 lines
318 B
C
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;
|
||
|
}
|