Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.sys.apple2    |    Discussion about Apple II micros    |    56,720 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 54,727 of 56,720    |
|    duhast6377@gmail.com to g...@sasktel.net    |
|    Re: Displaying text file from Applesoft    |
|    13 Apr 21 15:26:42    |
      From: duhas...@gmail.com              On Monday, April 12, 2021 at 11:47:11 PM UTC-4, g...@sasktel.net wrote:       > > Is there a more elegant way to display text files in Applesoft besides:        > >        > > 10 onerr goto 100        > > 20 input fn$        > > 30 ?chr$(4);"open ";fn$        > > 40 ?chr$(4);"read ";fn$        > > 50 input a$        > > 60 print a$        > > 70 goto 50        > > 100 ?chr$(4);"close"        > >        > > Waiting for an error seems....not the best way.       > A couple of other methods come to mind. There are commands which can be       installed into either DOS or ProDOS, such that one can just use: ?       CHR$(4)"TYPE textfilename".        >        > Under ProDOS one can also just use BLOAD, as in:        >        > LN = ?? : REM enter length of text file when doing a CATALOG or get length       from Basic.System        > ? CHR$(4)"BLOAD textfile,TTXT,A$2000" : FOR I=0 to LN-1: ? PEE       (8192+I);:NEXT        >        > I think there is also a way to BLOAD a textfile under DOS 3.3 but it has       been too long.              I am using Prodos, and I'm seen the addons. I already have an add on       installed, and I'm using the hires page. Is there a good way to find the free       memory space to bload to? I know you can check the length of an Applesoft       program, but then variable        space, and the Prodos buffers and addons....              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca