Path: utzoo!mnetor!tmsoft!dptcdc!torsqnt!jarvis.csri.toronto.edu!rutgers!sun-barr!newstop!sun!pepper!cmcmanis From: cmcmanis%pepper@Sun.COM (Chuck McManis) Newsgroups: comp.sys.amiga.tech Subject: Re: DME and vanishing text Message-ID: <120815@sun.Eng.Sun.COM> Date: 10 Aug 89 22:55:12 GMT References: <89222.135727WTW101@PSUVM> Sender: news@sun.Eng.Sun.COM Reply-To: cmcmanis@sun.UUCP (Chuck McManis) Organization: Sun Microsystems, Mountain View Lines: 17 In article <89222.135727WTW101@PSUVM> WTW101@PSUVM.BITNET (Bill Warner) writes: >The missing text occurs when I continue a line of text. i.e. I call >Write(...) and print some text, then I call Write(...) again and print text >thats terminates with a linefeed. The latter half of the text dissapears! >Ideas? Answers? Easy to hit bug. I bet when you call "Write(...)" for the first segment of the line you count the nul character, when you continue you start just past the nul you outputed. DME probably treats the NUL as the EOL since C does. But copy, and AmigaDOS in general just blasts whats in the file to the console and if it happens to have nuls in it, it doesn't care. --Chuck McManis uucp: {anywhere}!sun!cmcmanis BIX: cmcmanis ARPAnet: cmcmanis@sun.com These opinions are my own and no one elses, but you knew that didn't you. "A most excellent barbarian ... Genghis Kahn!"