Re: Writing To Binary File
- Posted by ghaberek (admin) Mar 08, 2009
- 903 views
The print() routine outputs a plain-text, semi-human-readable representation of a Euphoria object. If you're writing files in binary mode, you should be puts()-ing a sequence of bytes to the file. Typically, when you're using binary mode, you'll be using some sort of defined file structure, either an existing format (like an image or a document), or your own custom layout (like EDS). If you want to print() object to a file, then use text mode and later read them back with get().
-Greg