Binary I/O on stdin/stdout?
Barnacle Wes
wes at obie.UUCP
Tue Apr 5 03:26:18 AEST 1988
In article <3295 at haddock.ISC.COM>, karl at haddock.ISC.COM (Karl Heuer) writes:
| In article <2500 at bsu-cs.UUCP> dhesi at bsu-cs.UUCP (Rahul Dhesi) writes:
| >[In VMS] the default type of a file opened from a C program is stream-LF,
| >which uses records terminated by linefeeds, and does not distinguish between
| >text and binary formats at all, acting like UNIX and POSIX files.
|
| The fact that it's called "stream-LF" (as distinct from "stream-CR" or just
| "stream") suggests that the newlines which terminate the records have some
| significance to the OS. Is it legal, for example, to write 70000 characters
| without a newline? If not, this doesn't seem like an acceptable format for
| binary mode.
VMS "stream" files have a block size of 1 char, so you can write out
whatever you want (as long as you don't overflow the device).
--
/\ - "Against Stupidity, - {backbones}!
/\/\ . /\ - The Gods Themselves - utah-cs!utah-gr!
/ \/ \/\/ \ - Contend in Vain." - uplherc!sp7040!
/ U i n T e c h \ - Schiller - obie!wes
More information about the Comp.lang.c
mailing list