Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!rphroy!caen!uwm.edu!linac!mp.cs.niu.edu!ux1.cso.uiuc.edu!milo.mcs.anl.gov!achilles.ctd.anl.gov!curtis From: curtis@achilles.ctd.anl.gov (Jeffrey Curtis ) Newsgroups: comp.sys.apple2 Subject: Re: Text files & BASIC Message-ID: <1991Jun25.153649.23487@mcs.anl.gov> Date: 25 Jun 91 15:36:49 GMT References: <1991Jun25.050640.19679@crash.cts.com> Sender: news@mcs.anl.gov Organization: Computing and Telecommunications, Argonne National Laboratory Lines: 19 Nntp-Posting-Host: achilles.ctd.anl.gov In article <1991Jun25.050640.19679@crash.cts.com> bill@pro-gateway.cts.com (Bill Long, SysOp) writes: >Is there a way, in AppleSoft BASIC, to READ from a text file for a while, >then pause reading for a while and take input from the keyboard and put >output to the screen, and then continue READing from where you left off? Well, you could do it with pseudo-machine language (ie, make CALLs or PEEKs to certain registers), but I'm assuming you don't want to get that messy. It CAN be done; it's just a matter of resetting a pointer away from the file and back to the keyboard; this causes all INPUT commands to read from the console, but the problem is I don't know if there's an official way to do it in BASIC/DOS or not. Anyone else know how to do this? If not, I'll post a quickie in a few days showing you how to do it a few different ways with CALLs, PEEKs, and POKEs.. *+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+* + Jeffrey S. Curtis (708)972-8585 B41801 AT ANLVM curtis@achilles.ctd.anl.gov + * Computing and Telecommunications, Argonne National Laboratory * + Want a free copy of Heatseeker, the Apple's fastest disk utility? Mail me! + *+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*