From: bostonmacosx Date: 2006-05-02T01:58:57+09:00 Subject: Re: So I got a binary file... f 80 00 00 bf 80 00 00 bf 80 00 00 c0 00 00 00 |................| 00046170 bf 80 00 00 bf 80 00 00 3f 80 00 00 3f 80 00 00 |........?...?...| 00046180 bf 80 00 00 bf 80 00 00 c0 00 00 00 c0 40 00 00 |.............@..| 00046190 c0 00 00 00 bf 80 00 00 40 40 00 00 40 a0 00 00 |........@@..@...| 000461a0 40 e0 00 00 40 e0 00 00 40 c0 00 00 40 a0 00 00 |@...@...@...@...| 000461b0 40 40 00 00 40 00 00 00 40 00 00 00 40 40 00 00 |@@..@...@...@@..| 000461c0 40 80 00 00 40 a0 00 00 40 a0 00 00 40 a0 00 00 |@...@...@...@...| 000461d0 40 80 00 00 40 40 00 00 40 00 00 00 40 40 00 00 |@...@@..@...@@..| 000461e0 40 40 00 00 40 80 00 00 40 a0 00 00 40 c0 00 00 |@@..@...@...@...| 000461f0 40 c0 00 00 40 a0 00 00 40 40 00 00 40 00 00 00 |@...@...@@..@...| 00046200 3f 80 00 00 40 00 00 00 40 80 00 00 40 a0 00 00 |?...@...@...@...| 00046210 40 c0 00 00 40 a0 00 00 40 a0 00 00 40 80 00 00 |@...@...@...@...| 00046220 40 40 00 00 40 40 00 00 40 40 00 00 40 40 00 00 |@@..@@..@@..@@..| Really means nothing to me. What I'm looking to find is turning the whole thing into a human readable ASCII format. William Stevens wrote: > bostonmacosx wrote: >> Sorry for being such a NEWB. I'm a pretty prolific PHP writer however >> I'm new to RUBY and want to expand my horizons. >> >> I have a big-endian binary file and want to convert it to ascii so I see >> what's in it. >> Is there an easy way to accomplish this? > > Do you just want a hexdump of the contents were only the standard > printable characters are displayed? > If so you can do this, on Mac OS X, by typing 'hexdump -C question>' in a terminal window. > >> >> Thanks >> Robert > > Good luck, > Bill -- Posted via http://www.ruby-forum.com/.