c语言实现16进制文件读取

 FILE *sf;
	sf = fopen("G://2.txt", "rb");
	int n;
	unsigned char buf[16];
	unsigned long count = 0;
	while((n = fread(buf, sizeof(char), 16, sf)) > 0) {
		int i;

		printf("%08lx ", count);

		for(i=0; i 
   

 

你可能感兴趣的:(C语言,c/c++)