Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!dewey.soe.berkeley.edu!oster From: oster@dewey.soe.berkeley.edu (David Phillip Oster) Newsgroups: comp.sys.mac.programmer Subject: Re: File manager's "Newline" mode Message-ID: <31506@ucbvax.BERKELEY.EDU> Date: 25 Sep 89 08:15:52 GMT References: <12604@orstcs.CS.ORST.EDU> Sender: usenet@ucbvax.BERKELEY.EDU Reply-To: oster@dewey.soe.berkeley.edu.UUCP (David Phillip Oster) Distribution: usa Organization: School of Education, UC-Berkeley Lines: 18 In article <12604@orstcs.CS.ORST.EDU> borcelf@jacobs.cs.orst.edu (Fernando Borcel) writes: > IM vII and vIV mention a "newline" mode when reading from a (text) file. >But it doesn't seem to mention how this mode is set. So the question is: >How do you set it? You use PBRead(), and you stuff the newline character into the high byte of ioPosMode. Caution, this is _only_ supported by the file manager, in particular, it is not supported by the Serial Driver, so yo can't read from the serial port up to the next newline using this method. --- David Phillip Oster 7 line signature follows Keith Sproul, head of microcomputer support at Union Carbide, NJ, complained about the poorly digitized fellatio on an IBM porno program. "Mac is better on everything, and this is no execption." -- "Computer Porn at the Office" by Reese Erlich, _This_World_, S.F. Chronicle, p.8, Aug 13, 1989 Arpa: oster@dewey.soe.berkeley.edu Uucp: {uwvax,decvax}!ucbvax!oster%dewey.soe.berkeley.edu