Re: Write Binary

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

At 05:33 PM 6/3/98 -0400, you wrote:
>        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 = 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
>
I guess I should finish writing my e-mails before I click
"send".

Anyway, I think you want print(o)

It will write any kind of sequence along with the braces...

o = {1,2,4,{3,1},"Hello"}

print will send just that to disk as {1,2,3,{4,2},{72,101,108,108,111}}
You read it back with get.


Irv

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

Search



Quick Links

User menu

Not signed in.

Misc Menu