From: Pen Ttt Date: 2010-12-27T23:14:10+09:00 Subject: Re: how to change it in to hex? here is a part of stock data in china,i get it with command: hexdump -C /home/pt/day|less there are shanghai stock such as: SH000001,SH000002,SH000003,SH000004,SH000005 i can get it IO.read('/home/pt/day',8,0x14).unpack('A*') => ["SH000001"] other fields are date,open,high,low,close,vol,turnover, every stock have 64 bytes,maybe ff ff ff ff means the begining of data, would you mind to tell me how to crack the stock data file? 00000000 8c 19 fc 33 66 02 00 00 bb 05 00 00 00 00 00 00 |...3f...........| 00000010 ff ff ff ff 53 48 30 30 30 30 30 31 00 00 00 00 |....SH000001....| 00000020 9a c8 c3 a5 c9 cf d6 a4 d6 b8 ca fd 00 00 00 00 |................| 00000030 00 ee 0f 4d 71 99 32 45 b8 c2 35 45 14 ea 31 45 |...Mq.2E..5E..1E| 00000040 ec 81 35 45 f9 2b f1 4c de 55 01 52 ec 02 8c 00 |..5E.+.L.U.R....| 00000050 ff ff ff ff 53 48 30 30 30 30 30 32 00 ea 31 45 |....SH000002..1E| 00000060 9a c8 c3 a5 a3 c1 b9 c9 d6 b8 ca fd 00 02 8c 00 |................| 00000070 80 ca fe 4c 14 c6 3b 45 ae 8b 3c 45 52 24 3a 45 |...L..;E..