2014年10月23日 星期四

[C] create binary file and read it

1.Create binary file

Save as write.c file

Type gcc -g write.c -o write



2.Read binary file

Save as read.c file.

Type gcc -g read.c -o read





Result:



    100020003000400050006000700080009000A000


Reference:

1. fread

2. Hex Dump In Many Programming Languages

3. Hexadecimal dump in C

0 意見:

張貼留言