home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Hacker Chronicles 2
/
HACKER2.BIN
/
732.DXCCDEL.BAS
< prev
next >
Wrap
BASIC Source File
|
1985-09-28
|
1KB
|
35 lines
10 REM DXCCDEL VERSION 821025 COPYRIGHT JOE KASSER G3ZCZ 1982
20 ON ERROR GOTO 440
30 M = 350
40 DIM P$(M),C$(M),B$(M),M$(M),T(M),Q(M),D$(M)
50 INPUT "Which DXCC record file " ; F$
60 IF LEN(F$) = 0 THEN 50
70 OPEN"I",#2,F$ + ".DX"
80 OPEN "O",#1,F$ + ".$$$"
90 IF EOF(2) THEN 150
100 INPUT#2,P$,C$,B$,M$,D$,T,Q
110 I = I + 1
120 P$(I) = P$ : C$(I) = C$ : B$(I) = B$ : M$(I) = M$
130 D$(I) = D$ : T(I) = T : Q(I) = Q
140 GOTO 90
150 CLOSE #2
160 PRINT "THERE ARE";I;" ENTRIES IN THE FILE"
170 INPUT "Which prefix to delete ";E$
350 FOR J = 1 TO I
355 IF P$(J) = E$ THEN 380
360 PRINT P$(J),C$(J)
370 PRINT#1, P$(J);",";C$(J);",";B$(J);",";M$(J);",";D$(J);",";T(J);",";Q(J)
380 NEXT
390 CLOSE#1
400 KILL F$ + ".BAK"
410 NAME F$ + ".DX" AS F$ + ".BAK"
420 NAME F$ + ".$$$" AS F$ + ".DX"
430 GOTO 490
440 ON ERROR GOTO 440
450 IF ERR = 53 AND ERL = 400 THEN RESUME 410
460 IF ERL = 70 THEN RESUME 500
470 IF ERL = 390 AND ERR = 61 THEN PRINT "DISK IS FULL"
480 RESUME 490
490 END
500 PRINT "FILE DOES NOT EXIST" : GOTO 50