Re: Write Binary

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

----------
From:   Arthur Adamson[SMTP:euclid at ISOC.NET]
Sent:   Thursday, 04 June, 1998 6:33 AM
To:     EUPHORIA at LISTSERV.MUOHIO.EDU
Subject:        Write Binary

        I thought I read that opening a file as "wb" would permit =
writing
any object, even though complicated, in one command such as :

integer fnOut
fnOut =3D open("file.out", "wb")
put(fnOut, o)           or
write(fnOut, o)         or some such.

        Now that I want to do it, I haven't found the right command. Is
there a way?
            Thanks for your help, Art Adamson



Arthur P. Adamson, The Engine Man, euclid at isoc.net

-----------------

Graeme responded by suggesting puts(file,integerData), but I get the =
feeling that's not what you had in mind.  If file size isn't an issue, =
you could just use print(file,objectData) and get(file,objectData) since =
it prints the Euphoria sequence, squiggly brackets and atoms, exactly as =
you'd see it in the trace window.  Very simple.  However, if you're =
working with very large sequences, you might be better off using Ralf's =
EDOM2.

Michael J. Sabal
mjs at osa.att.ne.jp
http://home.att.ne.jp/gold/mjs/

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

Search



Quick Links

User menu

Not signed in.

Misc Menu