Path: utzoo!utgpu!water!watmath!clyde!rutgers!gatech!hao!ames!lll-tis!ptsfa!ski!dr From: dr@ski.UUCP (David Robins) Newsgroups: comp.sys.apple Subject: Re: WRITEing ^D to a file Message-ID: <2417@ski.UUCP> Date: 7 Jan 88 19:07:46 GMT Reply-To: dr@unix.UUCP (David Robins) Organization: Smith-Kettlewell Institute, S.F., CA. Lines: 37 In article <> SEWALL@UCONNVM.BITNET writes: > > TMPLee@DOCKMASTER.arpa writes... >>Does anyone know if there is any way in basic (applesoft) under ProDos >>to get the D$ (chr$(4) or chr$(132)) character written out to a file? I >>don't have a ProDos basic manual so don't know if there is any trick: >>neither doubling it nor following it with a carriage return, either of >>which seems a reasonable escape sequence, works. . > >I've never tried to do that, what happens if you enclose ^D in quotes? >as in: > >100 PRINT "^D" where the ^D is typed from the keyboard (somewhere I've > got a routine that'll make the ^D appear as an inverse D in response > to the LIST command. In both DOS 3.3 and ProDOS, inserting a "^D" in a PRINT statement, as above, will be interpreted as a ^D, and with stop writing to the file. Any PRINT statement following the goes to the screen rather than to the file. That is, both interpreters look for the ^D character, and take it to be a command intended for them. As I posted yesterday, I think you have to use a dummy character, and then go back with a sector editor and replace that character with a control-D. -- -dave ==================================================================== David Robins, M.D. (ophthalmologist / electronics engineer) Smith-Kettlewell Eye Research Foundation (previously known as: Smith-Kettlewell Institute of Visual Sciences) 2232 Webster St; San Francisco CA 94115 415/561-1705 (voice) {ihnp4,qantel,dual}!ptsfa!ski!dr The opinions expressed herein do not reflect the opinion of the Institute!