1. Binary I/O Operations?

This could well be a problem brought on by old age, but I can't find a Euphoria
function that allows me to read and write binary I/O. I can create a new binary
file using the "wb" variant of open, but all of the I/O statements seem to deal
exclusively with strings, and I need to be able to write and read raw integers.

TIA!

Dick Holmes

new topic     » topic index » view message » categorize

2. Re: Binary I/O Operations?

Try here:

http://www.rapideuphoria.com/cgi-bin/asearch.exu?dos=on&win=on&lnx=on&gen=on&keywords=Binary+input+ouput


http://users.telenet.be/tommycarlier/eu
http://www.rapideuphoria.com/gbinary.zip

Ken Rhodes
Folding at Home: http://folding.stanford.edu/
100% MicroSoft Free
SuSE Linux 10.0
No AdWare, SpyWare, or Viruses!
Life is Good,  smile

new topic     » goto parent     » topic index » view message » categorize

3. Re: Binary I/O Operations?

Ken,

Thanks for the pointer!

Dick Holmes

new topic     » goto parent     » topic index » view message » categorize

4. Re: Binary I/O Operations?

Dick Holmes wrote:
> 
> This could well be a problem brought on by old age, but I can't find a
> Euphoria
> function that allows me to read and write binary I/O. I can create a new
> binary
> file using the "wb" variant of open, but all of the I/O statements seem to
> deal
> exclusively with strings, and I need to be able to write and read raw
> integers.
> 
> TIA!
> 
> Dick Holmes

puts() works with binary input.

get_bytes and getc() read bytes from files opened using the "rb" mode.

CChris

new topic     » goto parent     » topic index » view message » categorize

5. Re: Binary I/O Operations?

Dick Holmes wrote:
> Ken,
>
> Thanks for the pointer!
Ah, but with Euphoria you don't need a pointer! smile

-- 
Craig

new topic     » goto parent     » topic index » view message » categorize

6. Re: Binary I/O Operations?

You may try MIO.E from the archive

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu