Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site pyuxv.UUCP Path: utzoo!watmath!clyde!burl!ulysses!gamma!pyuxww!pyuxv!craig From: craig@pyuxv.UUCP Newsgroups: net.micro.apple Subject: ProDOS READ/WRITE GET/PRINT? Message-ID: <141@pyuxv.UUCP> Date: Thu, 12-Sep-85 14:29:54 EDT Article-I.D.: pyuxv.141 Posted: Thu Sep 12 14:29:54 1985 Date-Received: Fri, 13-Sep-85 04:44:35 EDT Organization: RB Craig @ Bellcore, Piscataway, NJ Lines: 33 In Applesoft BASIC on my Apple //eE (ProDOS 1.1.1) I have been unsuccessfully trying to read TXT characters from one Disk file apply a little logic, and write the transliterated characters to another Disk file. What's the glitch? For example: [D$ = CHR$(4)] PRINT D$;"OPEN " PRINT D$;"READ " GET C$ [check and possibly translate] PRINT C$; [loop back to GET until EOF] [on EOF CLOSE file(s)] The above works as expected; prints the TXT file to the screen just fine. If PRINT D$;"OPEN " PRINT D$;"WRITE " is added ahead of the GET statement, the program only responds to C$'s entered on the keyboard. It's as if the OPEN/READ, which previously worked, is ignored due to the addition of OPEN/WRITE. Characters entered on the keyboard are buffered and eventually written to the . I have seen no prohibition of this READ/WRITE GET-PRINT in the manuals. Am I missing a simple workaround, short of Assembler routine(s). It's not another bug in ProDOS, surely. - - - - - - - - - - - - - - - - - - - - - - - ..!ihnp4!pyuxv!craig (RB Craig @ Bell Communications Research) Piscataway, NJ 08854-1300 If you don't like what you see, you may need to learn to like more things.