From: 7stud -- Date: 2011-04-21T09:45:44+09:00 Subject: Re: Binary file: SAT 7stud -- wrote in post #994163: > > Once you are familiar with what each byte in your file represents, you > can use String#unpack to tell ruby how many bytes each integer occupies, > and how to interpret the integer. But, I can't get a simple unpack() example to work, so what do I know: str = "\x00\x00\x00\x61" #97 in hex, taking up 4 bytes results = str.unpack("L") p results --output:-- [1627389952] -- Posted via http://www.ruby-forum.com/.