Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site ucbvax.BERKELEY.EDU Path: utzoo!decvax!decwrl!ucbvax!dec-blott.UUCP!seaton From: seaton@DEC-BLOTT.UUCP (Ian Seaton, Dedicated Mail, REO2-F/D3, DTN 830 3) Newsgroups: mod.computers.vax Subject: Re: VMS Output Message-ID: <8603121138.AA08548@decwrl.DEC.COM> Date: Wed, 12-Mar-86 06:38:21 EST Article-I.D.: decwrl.8603121138.AA08548 Posted: Wed Mar 12 06:38:21 1986 Date-Received: Sat, 15-Mar-86 04:19:40 EST Sender: usenet@ucbvax.BERKELEY.EDU Organization: The ARPA Internet Lines: 39 Approved: info-vax@sri-kl.arpa > "rick@siemans" writes that VMS is giving him newlines < > every 256 characters when writing from a VAX C program :< The most likely solution to your problem is that unlike UNIX, VMS has `half-a-million' different ways to open an output stream and you've got the wrong one. (Hardly surprising :-)) The one you probably want is to open your output stream like: fd = open( "tt:", O_RDWR, "ctx=bin" ); which tells RMS that you want to read and write binary not text. eg #include stdio #include file main() { int fd, i; fd = open( "tt:", O_WRONLY, "ctx=bin" ); for( i = 0; i < 512; i++ ) write( fd, "A", 1 ); close( fd ); } Should write out 512 `A's without break. Share and Enjoy... Ian Seaton DEC Reading, England UUCP: !dec-thrint! decwrl!dec-rhea!dec-tron !seaton !dec-blott ! ARPA: seaton%tron.DEC@DECWRL.ARPA