3350 C$ = " " +X$: FOR T = 1 TO 17 - LEN(C$):C$ = C$ +" ": NEXT :M$((V -5) +B1) = C$: GOTO 3530
3360 REM Delete
3370 IF R1$ = T1$(15) OR R1$ = T1$(16) THEN 3530
3380 INVERSE : VTAB V: PRINT M$((V -5) +B1): NORMAL : GOSUB 4280: PRINT "This file is to be permanently destroyed.": PRINT "Do you want to destroy it (Y/N)?";: GET A$
3390 IF A$ < >"Y" THEN 520
3400 ONERR GOTO 3490
3410 GOSUB 4130: PRINT D$;"DELETE ";R$
3420 TE = PG: FOR T = (V -5) +B1 TO B:M$(T) = M$(T +1):TY$(T) = TY$(T +1):L$(T) = L$(T +1):SB$(T) = SB$(T +1):TM$(T) = TM$(T +1): NEXT
3430 B = B -1:B3 = B3 -1 *(CP = PG): IF CP = 1 THEN 3450
3440 PG = B/14: IF PG < > INT(PG) THEN PG = INT(PG):PG = PG +1
3450 IF PG <TE AND CP = PG THEN V = 6:B2 = B2 +1:B1 = B1 -1
3460 IF (V +5) >(B2 -B1) THEN V = V -1
3470 POKE 216,0: ONERR GOTO 4530
3480 GOTO 3530
3490 POKE 216,0: ONERR GOTO 4530
3500 IF PEEK(222) = 10 THEN GOSUB 4280: PRINT "The file is locked, it can't be deleted.": GOSUB 4250: GOTO 3530
3510 IF PEEK(222) = 4 THEN GOSUB 4280: PRINT "The disk is write protected, the file cannot be deleted.": GOSUB 4250: GOTO 3530
3520 REM This routine restores the screen after Del,Rem,Lock & Unlock
3530 POKE 35,20: VTAB 6: CALL -958: POKE 1403,0
3540 IF CP = 1 AND PG = 0 THEN FOR T = 1 TO B: GOSUB 4110: NEXT : GOTO 3570
3550 IF CP = 1 THEN FOR T = 1 TO 14: GOSUB 4110: NEXT : GOTO 3570
3560 FOR T = B1 +1 TO B2: GOSUB 4110: NEXT
3570 POKE 35,24: IF SE = 1 THEN SE = 0: GOTO 650
3580 GOTO 520
3590 REM
3600 REM Get the catalog into the array M$ (The heart of the program)
4370 PRINT CHR$(15);"A"; CHR$(14);"-B moves cursor to beginning of page,"; CHR$(15);"A"; CHR$(14);"-E moves cursor to end of page.";: PRINT CHR$(15);"A"; CHR$(14);"-D dumps": PRINT "catalog to a printer.";
4380 PRINT " Esc backs up 1 directory level."
4390 POKE 1403,20: GOSUB 4250: GOTO 520
4400 REM
4410 REM Escape pressed, back up 1 directory level.
4420 REM
4430 IF RIGHT$(PF$,1) = "/" THEN PF$ = LEFT$(PF$, LEN(PF$) -1)
4550 GOSUB 4280: PRINT "Path not on this disk. Be sure"VOL$" is inserted.": PRINT "Press space bar to continue, Escape to quit.";: GET A$: IF A$ = CHR$(32) THEN RESUME
4560 IF A$ = CHR$(27) THEN SE = 1: GOTO 1270
4570 GOTO 4550
4580 IF PEEK(222) = 4 THEN GOSUB 4280: PRINT "The disk is write-protected, the operation is canceled.": GOSUB 4240: GOTO 520
4590 GOSUB 4280: PRINT "Error number "; PEEK(222)" in line " PEEK(218) +256 * PEEK(219): GOSUB 4250: POKE 216,0:SE = 1: GOTO 350