Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site trwrba.UUCP Path: utzoo!watmath!clyde!burl!ulysses!bellcore!decvax!ittatc!dcdwest!sdcsvax!sdcrdcf!trwrb!trwrba!gibson From: gibson@trwrba.UUCP (Gregory S. Gibson) Newsgroups: net.micro.cbm Subject: Sequential File Help Message-ID: <1868@trwrba.UUCP> Date: Thu, 27-Feb-86 13:13:15 EST Article-I.D.: trwrba.1868 Posted: Thu Feb 27 13:13:15 1986 Date-Received: Sat, 1-Mar-86 17:36:04 EST Organization: TRW EDS, Redondo Beach, CA Lines: 37 I have a problem when I load a sequential file into an array. It seems to be a C64 bug. After loading the data from the sequential file into an array, the program works find for awhile until suddenly, for no apparently reason, the program stops for 10-20 seconds then continues as if nothing happened. After studying this problem, I have discovered how to reproduce it. 1. Create a sequential file 2. Read the file into an array and print the amount of remaining RAM. Example: 100 DIMENSION ARRAY$(500) 200 T$="0:FEB 86,S,R" 250 OPEN 15,8,15 300 OPEN 4,8,4, T$ 400 FOR I=1 to 200 500 INPUT#4,ARRAY$(I) 600 IF ST>0 THEN 800 700 NEXT I 800 X=TI:PRINT" READ COMPLETE":PRINT" AVALILABLE RAM IS" 900 PRINT FRE(O) - (SGN(FRE(O)) < 0)*65535 :REM THIS IS THE DELAY 910 Y=(TI-X)/60: PRINT" TIME DELAY=";Y 920 PRINT" STOP PROGRAM" 930 CLOSE4: CLOSE15 940 STOP 950 END The larger the loop, the longer the execution delay. It seems the BASIC array or memory pointers get confusioned. Thanks in advance Gregory Gibson {decvax,ucbvax,ihnp4}!trwrb!trwrba!gibson