Re: Write Binary
- Posted by mountains at MINDSPRING.COM Jun 03, 1998
- 807 views
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 > Write Binary just sends 8bit values out (0..255decimal) while the other write modes add c/r codes, and interpret control-z to indicate end-of-file. If you're writing stuff that might have a control-z (Ascii 26) imbedded in it, you have to use binary writes. Hope I'm right about that. Irv