Path: utzoo!mnetor!uunet!seismo!sundc!pitstop!sun!decwrl!ucbvax!HROEUR5.BITNET!MEELISSE From: MEELISSE@HROEUR5.BITNET Newsgroups: comp.sys.apple Subject: READ /RAM CATALOG IN APPLESOFT Message-ID: <8804152230.aa12184@SMOKE.BRL.ARPA> Date: 15 Apr 88 14:17:00 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 19 I have written a short BASIC program to read the contents of a ProDOS directory and put it in a string array (see below). All works fine until I try reading my /RAM disk... Just after the filenames have been read and before the "Blocks free..." line should be read, I get an OUT OF DATA error and the program stops executing. Why does this happen? Is there anything I can do to prevent it? The program looks like this: 100 D$=CHR$(4): PRINT D$"OPEN/RAM,TDIR" 110 PRINT D$"READ/RAM" 120 INPUT S1$ : INPUT S2$ : INPUT S3$ : INPUT S4$ 130 I=1 140 INPUT F$(I) : IF F$(I)<>"" THEN I=I+1 : GOTO 140 150 INPUT BLOCKS$ 160 PRINT D$"CLOSE" (I use an Apple //c and ProDOS 1.2) Danny Lagrouw, MEELISSEN@HROEUR5.BITNET