Re: Binary I/O Operations? Got it!

new topic     » topic index » view thread      » older message » newer message

Dick Holmes wrote:
> 
> Well, Juergen gave me the clue. It turns out that my hex viewer was converting
> the #00 into #0D0A! When I changed to a different viewer I got the expected
> result.
> 
> Thanks to all who helped, and sorry for the confusion!
> 
> Dick
Heh. I created a bin2hex converter in Euphoria. It's in the archive:
http://www.rapideuphoria.com/bin2hex.zip

You can convert a file to human-readable hexadecimal and view it in your
favorite text editor. I made it as kind of a one-off program while I was writing
and verifying some of the Great Computer Language Shootout benchmarks (that I
need to get back to working on one of these days).

One problem with Windows and DOS is that you can't use command-line redirection
with binary data like you can with Linux and BSD. But that's an OS thing, not a
language thing.

--
"Any programming problem can be solved by adding a level of indirection."
--anonymous
"Any performance problem can be solved by removing a level of indirection."
--M. Haertel
"Premature optimization is the root of all evil in programming."
--C.A.R. Hoare
j.

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu