On Sat 05 Nov 2011 at 19:05:14 +0100, Spiro Trikaliotis wrote: > IIRC, this is wrong. ST=64 is set when you just read the last byte. > Thus, you end with a file that is one byte shorter than the original > one. > > So, you have to "print#3,a$;" *before* doing the check in line 50. > > thus, change it to: > > 45 print#3,a$; > 50 if st=64 then goto 80 > 60 goto 40 > > Or, what is seen most often: > > 50 print#3,a$; > 60 if st<>64 goto 80 Won't that PRINT# change the value of ST? Probably better to save ST after the GET# and check the saved value after the PRINT#. -Olaf. -- ___ Olaf 'Rhialto' Seibert -- There's no point being grown-up if you \X/ rhialto/at/xs4all.nl -- can't be childish sometimes. -The 4th Doctor Message was sent through the cbm-hackers mailing listReceived on 2011-11-08 11:00:09
Archive generated by hypermail 2.2.0.