Path: utzoo!attcan!uunet!lll-winken!lll-tis!helios.ee.lbl.gov!nosc!ucsd!ucbvax!PCO-MULTICS.HBI.HONEYWELL.COM!RStallworthy From: RStallworthy@PCO-MULTICS.HBI.HONEYWELL.COM Newsgroups: comp.lang.c Subject: ANSI C Standard, Query Message-ID: <881014204352.505039@PCO-MULTICS.HBI.HONEYWELL.COM> Date: 14 Oct 88 20:43:00 GMT Sender: usenet@ucbvax.BERKELEY.EDU Reply-To: RStallworthy%PCO@BCO-MULTICS.HBI.HONEYWELL.COM Organization: The Internet Lines: 18 In looking at the section (4.9.2) on "streams", it refers to streams of two types, "binary" and "text". Elsewhere it refers to binary files and text files, as if there were two distinct file types, such that a binary file could only be read / written as a binary stream and a text file could only be read / written as a text file. Now I am aware that the standard does not require this to be the case, but is there anything in the standard that would prevent it from being implemented in this way. Such an implementation would make it very difficult to write a program like "od", because you would not be able to get at the internal representation of a text file (on a non-UNIX system where the internal representation of lines is not just new-line characters separating the lines). Similarly, it seems to me that all disk files should be readable as a binary stream, however, again I am having trouble finding anything in the standard that would require this of an implementation to be conformant with the standard.