[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: binary vs non-binary ports
Bradd W. Szonye wrote:
Per Bothner wrote:
Well, yes. The points I'm making are:
* One layers text i/o on top of binary i/o.
Not in general. That's the easiest way to do it on the "all files are
streams of bytes" used by Unix and Windows, but those aren't the only
operating systems in the worlds. Many systems still use record-based
files and other oddities where you usually implement "binary" I/O on top
of the text or record interface to create the illusion of a byte stream.
You'd still not layer binary i/o on top of text i/o. You can layer
binary i/o on top of record i/o.