Home » Archimedes archive » Acorn User » AU 1997-04 B.adf » PD » PDScheme/Newshound/NewsHound/NewsHound/group

PDScheme/Newshound/NewsHound/NewsHound/group

This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.

Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.

Tape/disk: Home » Archimedes archive » Acorn User » AU 1997-04 B.adf » PD
Filename: PDScheme/Newshound/NewsHound/NewsHound/group
Read OK:
File size: 12E9 bytes
Load address: 0000
Exec address: 0000
File contents
   10REM >group
   20REM NewsHound Newsbase Transport group command
   30REM
   40REM Allows newsbase to manipulate NewsHound's group files
   50REM
   60REM -add to here no longer used - see !AltGroup
   70REM By Joseph Heenan, 1996
   80
   81ON ERROR REPORT:PRINT" at line ";ERL:END
   90OSCLI("set NewsBase$ReturnCode -1")
  100OSCLI("set NewsBase$ReturnInfo Error occured in transport command")
  110SYS"OS_GetEnv" TO A$
  120group$="":action%=0: REM action% 1 = add, action% 2 = del
  130head%=FALSE
  140REPEAT
  150  p$=FNgetpar(A$," ")
  160  CASE p$ OF
  170    WHEN"-add":action%=1
  180    WHEN"-del":action%=2
  190    WHEN"-make":action%=3
  200    WHEN"-head":head%=TRUE
  210    WHEN"-n":group$=FNgetpar(A$," ")
  220  ENDCASE
  230UNTIL A$=""
  240
  250IF (group$="" AND action%<>3) THEN PROCexit(1,"No groupname parameter")
  260IF action%=0 THEN PROCexit(1,"No action specified")
  270DIM buf% 1024
  280
  290
  300d1$="<NewsHound$ConfigDir>"
  310SYS"XOS_File",17,d1$TOt%;F%
  320IFt%=0OR(F%AND1)<>0 THENPROCexit(1,"!NewsHound not found")
  330
  340IF action%=3 THEN
  350  d2$="<NewsBase$Config>.NewsHound.groups"
  360  a%=FNrename(d2$,d2$+"~")
  370  file%=FNopenout(d2$)
  380  IF file%=0 THEN PROCexit(1,"Error open groups file for output")
  390ENDIF
  400
  410IF action%=1 THEN
  620  number%=-1
  630ENDIF
  640
  650SYS"XOS_GBPB",9,d1$,buf%,77,0,1024,"*Group"TO,,,no%,next%;F%
  660
  670files%=0
  680p%=buf%
  690IF (F% AND 1)=0 AND no%>0 THEN
  700  FOR i%=1 TO no%
  710    REM find each xxxGroup file, add group if not already present
  720    f$=FNstr(buf%)
  721    buf%+=LENf$+1
  750    file$=d1$+"."+f$
  760    CASE action% OF
  770      WHEN 1:
  780        out%=FNopenup(file$)
  790        IF out%>0 THEN
  800          PROCaddgroup(out%,group$)
  810          PROCcf(out%)
  820          files%+=1
  830        ENDIF
  840      WHEN 2:
  850        PROCdelgroup(file$,group$)
  860        files%+=1
  870      WHEN 3:
  880        PROCcopygroup(file$,file%)
  890        files%+=1
  900    ENDCASE
  910  NEXT
  920ENDIF
  930
  940IF action%=3 THEN
  950  CLOSE#file%
  960  REM sort, then uniq, maybe
  970  PROCexit(0,"Active list updated")
  980ENDIF
  990
 1000IF action%=1 THEN
 1010  IF head% THEN head$="head" ELSE head$="full"
 1021ENDIF
 1030
 1040IF files%>0 THEN
 1050  PROCexit(0,"Group "+group$+" changed in "+STR$(files%)+" group files")
 1060 ELSE
 1070  PROCexit(1,"Could not change group status")
 1080ENDIF
 1090END
 1100
 1110DEF PROCcopygroup(file$,file%)
 1120LOCAL in%,in$,tab%,x%
 1130in%=FNopenin(file$)
 1140PTR#in%=0
 1150x%=0
 1160WHILE ((x%<3) AND (NOT EOF#in%))
 1170  in$=GET$#in%
 1180  IF LEFT$(in$,1)<>"#" THEN x%+=1
 1190ENDWHILE
 1200
 1201REM Okay, past rulefile/date/hostname now
 1210IF EOF#in% THEN PROCcf(out%):PROCexit(1,"Group file parser failed reading rulefile")
 1220REPEAT
 1230  in$=GET$#in%
 1240  IF LEFT$(in$,1)<>"#" THEN
 1250    tab%=INSTR(in$,CHR$9)
 1260    IF tab%>0 THEN in$=LEFT$(in$,tab%-1)
 1270    BPUT#file%,in$
 1280  ENDIF
 1290UNTIL (EOF#in%)
 1300PROCcf(in%)
 1310ENDPROC
 1320
 1330DEF PROCdelgroup(file$,group$)
 1340LOCAL in%,out%,in$,tab%,x%,tmp$
 1350
 1360in%=FNopenin(file$)
 1370IF in%=0 THEN PROCexit(1,"Error opening group file for input")
 1380out%=FNopenout(file$+"~")
 1390IF out%=0 THEN PROCcf(in%):PROCexit(1,"Error open temp file for output")
 1400
 1410x%=0
 1420WHILE ((x%<3) AND (NOT EOF#out%))
 1430  in$=GET$#in%
 1450  BPUT#out%,in$
 1460  IF LEFT$(in$,1)="#" THEN x%+=1
 1470ENDWHILE
 1480REM Okay, past rulefile/date/hostname now
 1490IF EOF#in% THEN PROCcf(in%):PROCcf(out%):A%=FNdelfile(file$+"~"):PROCexit(1,"Group file parser failed reading rulefile")
 1500REPEAT
 1510  in$=GET$#in%
 1530  tmp$=in$
 1540  IF LEFT$(in$,1)<>"#" THEN
 1550    tab%=INSTR(in$,CHR$9)
 1560    IF tab%>0 THEN
 1570      IF group$<>LEFT$(in$,tab%-1) THEN
 1580        BPUT#out%,tmp$
 1590      ENDIF
 1600    ELSE
 1610      IF group$<>in$ THEN
 1620        BPUT#out%,tmp$
 1630      ENDIF
 1640    ENDIF
 1650  ELSE
 1660    BPUT#out%,tmp$
 1670  ENDIF
 1680UNTIL (EOF#in%)
 1690PROCcf(in%)
 1700PROCcf(out%)
 1710a%=FNdelfile(file$)
 1720a%=FNrename(file$+"~",file$)
 1730ENDPROC
 1740
 1750
 1760
 1770DEF PROCaddgroup(out%,group$)
 1780LOCAL in$,tab%,x%,found%
 1790found%=FALSE
 1800PTR#out%=0
 1810x%=0
 1820WHILE ((x%<3) AND (NOT EOF#out%))
 1830  in$=GET$#out%
 1840  IF LEFT$(in$,1)<>"#" THEN x%+=1
 1850ENDWHILE
 1860REM Okay, past rulefile/date/hostname now
 1870IF EOF#out% THEN PROCcf(out%):PROCexit(1,"Group file parser failed reading rulefile")
 1880REPEAT
 1890  in$=GET$#out%
 1900  IF LEFT$(in$,1)<>"#" THEN
 1910    tab%=INSTR(in$,CHR$9)
 1920    IF tab%>0 THEN in$=LEFT$(in$,tab%-1)
 1930    IF in$=group$ THEN found%=TRUE
 1940  ENDIF
 1950UNTIL ((EOF#out%) OR (found%))
 1960IF (NOT found%) THEN
 1970  PTR#out%=EXT#out%
 1990  BPUT#out%,group$+CHR$(9)+STR$(number%)
 2000  REM This could be 0, meaning fetch whole group, or something else
 2010  REM to catch the group up(ie. -1 ;-)....
 2020ENDIF
 2030ENDPROC
 2040
 2050
 2060DEFPROCexit(n%,a$)
 2080OSCLI("set NewsBase$ReturnCode "+STR$n%)
 2090OSCLI("set NewsBase$ReturnInfo "+a$)
 2100END
 2110
 2120DEFFNstr(a%)
 2130LOCALa$:WHILE ?a%>31ANDLENa$<255:a$+=CHR$?a%:a%+=1:ENDWHILE
 2140=a$
 2150
 2160DEFFNgetpar(RETURN A$,s$)
 2170LOCALB$,l%
 2180l%=INSTR(A$,s$)
 2190IFl%>0THEN
 2200  B$=LEFT$(A$,l%-1):A$=MID$(A$,l%+1)
 2210  ELSE
 2220  B$=A$:A$=""
 2230ENDIF
 2240=B$
 2250
 2260DEFFNrename(s$,d$)
 2270LOCALF%:SYS"XOS_FSControl",25,s$,d$TOerr%;F%
 2280IF(F%AND1) THEN
 2290  F%=FNdelfile(d$)
 2300  SYS"XOS_FSControl",25,s$,d$TOerr%;F%
 2310ENDIF
 2320=(F%AND1)
 2330
 2340DEFFNdelfile(f$)
 2350LOCALF%:SYS"XOS_File",6,f$TO;F%
 2360=(F%AND1)
 2370
 2380
 2390DEFFNopenin(f$)
 2400=FNfopen(f$,&4F)
 2410
 2420DEFFNopenout(f$)
 2430=FNfopen(f$,&8F)
 2440
 2450DEFFNopenup(f$)
 2460LOCALh%
 2470h%=FNfopen(f$,&CF)
 2480IFh%=0THENh%=FNfopen(f$,&8F)
 2490=h%
 2500
 2510DEFFNfopen(f$,r%)
 2520LOCALh%,l%,F%
 2530SYS"XOS_Find",r%,f$TOh%;F%
 2540IF(F%AND1)THENh%=0
 2550=h%
 2560
 2570DEFPROCcf(RETURN h%)
 2580LOCALl%
 2590IFh%>0THENSYS"XOS_Find",0,h%:h%=0
 2600ENDPROC
 2610

� >group
0� NewsHound Newsbase Transport group command
�
(;� Allows newsbase to manipulate NewsHound's group files
2�
<1� -add to here no longer used - see !AltGroup
F� By Joseph Heenan, 1996
P
Q� � �:�" at line ";�:�
Z#�("set NewsBase$ReturnCode -1")
dC�("set NewsBase$ReturnInfo Error occured in transport command")
nș"OS_GetEnv" � A$
x;group$="":action%=0: � action% 1 = add, action% 2 = del
�head%=�
��
�  p$=�getpar(A$," ")
�
  Ȏ p$ �
�    �"-add":action%=1
�    �"-del":action%=2
�    �"-make":action%=3
�    �"-head":head%=�
�$    �"-n":group$=�getpar(A$," ")
�  �
�� A$=""
�
�B� (group$="" � action%<>3) � �exit(1,"No groupname parameter")
0� action%=0 � �exit(1,"No action specified")
� buf% 1024

"
,d1$="<NewsHound$ConfigDir>"
6ș"XOS_File",17,d1$�t%;F%
@4�t%=0�(F%�1)<>0 ��exit(1,"!NewsHound not found")
J
T� action%=3 �
^.  d2$="<NewsBase$Config>.NewsHound.groups"
h  a%=�rename(d2$,d2$+"~")
r  file%=�openout(d2$)
|>  � file%=0 � �exit(1,"Error open groups file for output")
��
�
�� action%=1 �
l  number%=-1
v�
�
�>ș"XOS_GBPB",9,d1$,buf%,77,0,1024,"*Group"�,,,no%,next%;F%
�
�files%=0
�p%=buf%
�� (F% � 1)=0 � no%>0 �
�  � i%=1 � no%
�C    � find each xxxGroup file, add group if not already present
�    f$=�str(buf%)
�    buf%+=�f$+1
�    file$=d1$+"."+f$
�    Ȏ action% �
      � 1:
        out%=�openup(file$)
        � out%>0 �
 $          �addgroup(out%,group$)
*          �cf(out%)
4          files%+=1
>
        �
H      � 2:
R#        �delgroup(file$,group$)
\        files%+=1
f      � 3:
p#        �copygroup(file$,file%)
z        files%+=1
�	    �
�  �
��
�
�� action%=3 �
�
  �#file%
�  � sort, then uniq, maybe
�$  �exit(0,"Active list updated")
��
�
�� action%=1 �
�+  � head% � head$="head" � head$="full"
��

� files%>0 �
F  �exit(0,"Group "+group$+" changed in "+�(files%)+" group files")
$ �
..  �exit(1,"Could not change group status")
8�
B�
L
V� �copygroup(file$,file%)
`� in%,in$,tab%,x%
jin%=�openin(file$)
t�#in%=0
~x%=0
�ȕ ((x%<3) � (� �#in%))
�  in$=�#in%
�  � �in$,1)<>"#" � x%+=1
��
�
�+� Okay, past rulefile/date/hostname now
�L� �#in% � �cf(out%):�exit(1,"Group file parser failed reading rulefile")
��
�  in$=�#in%
�  � �in$,1)<>"#" �
�    tab%=�in$,�9)
�#    � tab%>0 � in$=�in$,tab%-1)
�    �#file%,in$
  �


� (�#in%)
�cf(in%)
�
(
2� �delgroup(file$,group$)
<� in%,out%,in$,tab%,x%,tmp$
F
Pin%=�openin(file$)
Z;� in%=0 � �exit(1,"Error opening group file for input")
dout%=�openout(file$+"~")
nB� out%=0 � �cf(in%):�exit(1,"Error open temp file for output")
x
�x%=0
�ȕ ((x%<3) � (� �#out%))
�  in$=�#in%
�  �#out%,in$
�  � �in$,1)="#" � x%+=1
��
�+� Okay, past rulefile/date/hostname now
�l� �#in% � �cf(in%):�cf(out%):A%=�delfile(file$+"~"):�exit(1,"Group file parser failed reading rulefile")
��
�  in$=�#in%
�  tmp$=in$
  � �in$,1)<>"#" �
    tab%=�in$,�9)
    � tab%>0 �
""      � group$<>�in$,tab%-1) �
,        �#out%,tmp$
6      �
@	    �
J      � group$<>in$ �
T        �#out%,tmp$
^      �
h	    �
r  �
|    �#out%,tmp$
�  �
�
� (�#in%)
��cf(in%)
�
�cf(out%)
�a%=�delfile(file$)
�a%=�rename(file$+"~",file$)
��
�
�
�
�� �addgroup(out%,group$)
�� in$,tab%,x%,found%
�found%=�
�#out%=0
x%=0
ȕ ((x%<3) � (� �#out%))
&  in$=�#out%
0  � �in$,1)<>"#" � x%+=1
:�
D+� Okay, past rulefile/date/hostname now
NM� �#out% � �cf(out%):�exit(1,"Group file parser failed reading rulefile")
X�
b  in$=�#out%
l  � �in$,1)<>"#" �
v    tab%=�in$,�9)
�#    � tab%>0 � in$=�in$,tab%-1)
�    � in$=group$ � found%=�
�  �
�� ((�#out%) � (found%))
�� (� found%) �
�  �#out%=�#out%
�#  �#out%,group$+�(9)+�(number%)
�E  � This could be 0, meaning fetch whole group, or something else
�,  � to catch the group up(ie. -1 ;-)....
��
��
�

��exit(n%,a$)
 %�("set NewsBase$ReturnCode "+�n%)
*$�("set NewsBase$ReturnInfo "+a$)
4�
>
H
ݤstr(a%)
R*�a$:ȕ ?a%>31��a$<255:a$+=�?a%:a%+=1:�
\=a$
f
pݤgetpar(� A$,s$)
z
�B$,l%
�l%=�A$,s$)
�
�l%>0�
�  B$=�A$,l%-1):A$=�A$,l%+1)
�  �
�  B$=A$:A$=""
��
�=B$
�
�ݤrename(s$,d$)
�*�F%:ș"XOS_FSControl",25,s$,d$�err%;F%
�
�(F%�1) �
�  F%=�delfile(d$)
�(  ș"XOS_FSControl",25,s$,d$�err%;F%
	�
	=(F%�1)
	
	$ݤdelfile(f$)
	.�F%:ș"XOS_File",6,f$�;F%
	8=(F%�1)
	B
	L
	Vݤopenin(f$)
	`=�fopen(f$,&4F)
	j
	tݤopenout(f$)
	~=�fopen(f$,&8F)
	�
	�ݤopenup(f$)
	��h%
	�h%=�fopen(f$,&CF)
	��h%=0�h%=�fopen(f$,&8F)
	�=h%
	�
	�ݤfopen(f$,r%)
	�
�h%,l%,F%
	�ș"XOS_Find",r%,f$�h%;F%
	��(F%�1)�h%=0
	�=h%


��cf(� h%)
�l%
 �h%>0�ș"XOS_Find",0,h%:h%=0
(�
2
�
00000000  0d 00 0a 0c f4 20 3e 67  72 6f 75 70 0d 00 14 30  |..... >group...0|
00000010  f4 20 4e 65 77 73 48 6f  75 6e 64 20 4e 65 77 73  |. NewsHound News|
00000020  62 61 73 65 20 54 72 61  6e 73 70 6f 72 74 20 67  |base Transport g|
00000030  72 6f 75 70 20 63 6f 6d  6d 61 6e 64 0d 00 1e 05  |roup command....|
00000040  f4 0d 00 28 3b f4 20 41  6c 6c 6f 77 73 20 6e 65  |...(;. Allows ne|
00000050  77 73 62 61 73 65 20 74  6f 20 6d 61 6e 69 70 75  |wsbase to manipu|
00000060  6c 61 74 65 20 4e 65 77  73 48 6f 75 6e 64 27 73  |late NewsHound's|
00000070  20 67 72 6f 75 70 20 66  69 6c 65 73 0d 00 32 05  | group files..2.|
00000080  f4 0d 00 3c 31 f4 20 2d  61 64 64 20 74 6f 20 68  |...<1. -add to h|
00000090  65 72 65 20 6e 6f 20 6c  6f 6e 67 65 72 20 75 73  |ere no longer us|
000000a0  65 64 20 2d 20 73 65 65  20 21 41 6c 74 47 72 6f  |ed - see !AltGro|
000000b0  75 70 0d 00 46 1c f4 20  42 79 20 4a 6f 73 65 70  |up..F.. By Josep|
000000c0  68 20 48 65 65 6e 61 6e  2c 20 31 39 39 36 0d 00  |h Heenan, 1996..|
000000d0  50 04 0d 00 51 1a ee 20  85 20 f6 3a f1 22 20 61  |P...Q.. . .:." a|
000000e0  74 20 6c 69 6e 65 20 22  3b 9e 3a e0 0d 00 5a 23  |t line ";.:...Z#|
000000f0  ff 28 22 73 65 74 20 4e  65 77 73 42 61 73 65 24  |.("set NewsBase$|
00000100  52 65 74 75 72 6e 43 6f  64 65 20 2d 31 22 29 0d  |ReturnCode -1").|
00000110  00 64 43 ff 28 22 73 65  74 20 4e 65 77 73 42 61  |.dC.("set NewsBa|
00000120  73 65 24 52 65 74 75 72  6e 49 6e 66 6f 20 45 72  |se$ReturnInfo Er|
00000130  72 6f 72 20 6f 63 63 75  72 65 64 20 69 6e 20 74  |ror occured in t|
00000140  72 61 6e 73 70 6f 72 74  20 63 6f 6d 6d 61 6e 64  |ransport command|
00000150  22 29 0d 00 6e 16 c8 99  22 4f 53 5f 47 65 74 45  |")..n..."OS_GetE|
00000160  6e 76 22 20 b8 20 41 24  0d 00 78 3b 67 72 6f 75  |nv" . A$..x;grou|
00000170  70 24 3d 22 22 3a 61 63  74 69 6f 6e 25 3d 30 3a  |p$="":action%=0:|
00000180  20 f4 20 61 63 74 69 6f  6e 25 20 31 20 3d 20 61  | . action% 1 = a|
00000190  64 64 2c 20 61 63 74 69  6f 6e 25 20 32 20 3d 20  |dd, action% 2 = |
000001a0  64 65 6c 0d 00 82 0b 68  65 61 64 25 3d a3 0d 00  |del....head%=...|
000001b0  8c 05 f5 0d 00 96 18 20  20 70 24 3d a4 67 65 74  |.......  p$=.get|
000001c0  70 61 72 28 41 24 2c 22  20 22 29 0d 00 a0 0d 20  |par(A$," ").... |
000001d0  20 c8 8e 20 70 24 20 ca  0d 00 aa 19 20 20 20 20  | .. p$ .....    |
000001e0  c9 22 2d 61 64 64 22 3a  61 63 74 69 6f 6e 25 3d  |."-add":action%=|
000001f0  31 0d 00 b4 19 20 20 20  20 c9 22 2d 64 65 6c 22  |1....    ."-del"|
00000200  3a 61 63 74 69 6f 6e 25  3d 32 0d 00 be 1a 20 20  |:action%=2....  |
00000210  20 20 c9 22 2d 6d 61 6b  65 22 3a 61 63 74 69 6f  |  ."-make":actio|
00000220  6e 25 3d 33 0d 00 c8 18  20 20 20 20 c9 22 2d 68  |n%=3....    ."-h|
00000230  65 61 64 22 3a 68 65 61  64 25 3d b9 0d 00 d2 24  |ead":head%=....$|
00000240  20 20 20 20 c9 22 2d 6e  22 3a 67 72 6f 75 70 24  |    ."-n":group$|
00000250  3d a4 67 65 74 70 61 72  28 41 24 2c 22 20 22 29  |=.getpar(A$," ")|
00000260  0d 00 dc 07 20 20 cb 0d  00 e6 0b fd 20 41 24 3d  |....  ...... A$=|
00000270  22 22 0d 00 f0 04 0d 00  fa 42 e7 20 28 67 72 6f  |"".......B. (gro|
00000280  75 70 24 3d 22 22 20 80  20 61 63 74 69 6f 6e 25  |up$="" . action%|
00000290  3c 3e 33 29 20 8c 20 f2  65 78 69 74 28 31 2c 22  |<>3) . .exit(1,"|
000002a0  4e 6f 20 67 72 6f 75 70  6e 61 6d 65 20 70 61 72  |No groupname par|
000002b0  61 6d 65 74 65 72 22 29  0d 01 04 30 e7 20 61 63  |ameter")...0. ac|
000002c0  74 69 6f 6e 25 3d 30 20  8c 20 f2 65 78 69 74 28  |tion%=0 . .exit(|
000002d0  31 2c 22 4e 6f 20 61 63  74 69 6f 6e 20 73 70 65  |1,"No action spe|
000002e0  63 69 66 69 65 64 22 29  0d 01 0e 0f de 20 62 75  |cified")..... bu|
000002f0  66 25 20 31 30 32 34 0d  01 18 04 0d 01 22 04 0d  |f% 1024......"..|
00000300  01 2c 1f 64 31 24 3d 22  3c 4e 65 77 73 48 6f 75  |.,.d1$="<NewsHou|
00000310  6e 64 24 43 6f 6e 66 69  67 44 69 72 3e 22 0d 01  |nd$ConfigDir>"..|
00000320  36 1d c8 99 22 58 4f 53  5f 46 69 6c 65 22 2c 31  |6..."XOS_File",1|
00000330  37 2c 64 31 24 b8 74 25  3b 46 25 0d 01 40 34 e7  |7,d1$.t%;F%..@4.|
00000340  74 25 3d 30 84 28 46 25  80 31 29 3c 3e 30 20 8c  |t%=0.(F%.1)<>0 .|
00000350  f2 65 78 69 74 28 31 2c  22 21 4e 65 77 73 48 6f  |.exit(1,"!NewsHo|
00000360  75 6e 64 20 6e 6f 74 20  66 6f 75 6e 64 22 29 0d  |und not found").|
00000370  01 4a 04 0d 01 54 11 e7  20 61 63 74 69 6f 6e 25  |.J...T.. action%|
00000380  3d 33 20 8c 0d 01 5e 2e  20 20 64 32 24 3d 22 3c  |=3 ...^.  d2$="<|
00000390  4e 65 77 73 42 61 73 65  24 43 6f 6e 66 69 67 3e  |NewsBase$Config>|
000003a0  2e 4e 65 77 73 48 6f 75  6e 64 2e 67 72 6f 75 70  |.NewsHound.group|
000003b0  73 22 0d 01 68 1d 20 20  61 25 3d a4 72 65 6e 61  |s"..h.  a%=.rena|
000003c0  6d 65 28 64 32 24 2c 64  32 24 2b 22 7e 22 29 0d  |me(d2$,d2$+"~").|
000003d0  01 72 19 20 20 66 69 6c  65 25 3d a4 6f 70 65 6e  |.r.  file%=.open|
000003e0  6f 75 74 28 64 32 24 29  0d 01 7c 3e 20 20 e7 20  |out(d2$)..|>  . |
000003f0  66 69 6c 65 25 3d 30 20  8c 20 f2 65 78 69 74 28  |file%=0 . .exit(|
00000400  31 2c 22 45 72 72 6f 72  20 6f 70 65 6e 20 67 72  |1,"Error open gr|
00000410  6f 75 70 73 20 66 69 6c  65 20 66 6f 72 20 6f 75  |oups file for ou|
00000420  74 70 75 74 22 29 0d 01  86 05 cd 0d 01 90 04 0d  |tput")..........|
00000430  01 9a 11 e7 20 61 63 74  69 6f 6e 25 3d 31 20 8c  |.... action%=1 .|
00000440  0d 02 6c 10 20 20 6e 75  6d 62 65 72 25 3d 2d 31  |..l.  number%=-1|
00000450  0d 02 76 05 cd 0d 02 80  04 0d 02 8a 3e c8 99 22  |..v.........>.."|
00000460  58 4f 53 5f 47 42 50 42  22 2c 39 2c 64 31 24 2c  |XOS_GBPB",9,d1$,|
00000470  62 75 66 25 2c 37 37 2c  30 2c 31 30 32 34 2c 22  |buf%,77,0,1024,"|
00000480  2a 47 72 6f 75 70 22 b8  2c 2c 2c 6e 6f 25 2c 6e  |*Group".,,,no%,n|
00000490  65 78 74 25 3b 46 25 0d  02 94 04 0d 02 9e 0c 66  |ext%;F%........f|
000004a0  69 6c 65 73 25 3d 30 0d  02 a8 0b 70 25 3d 62 75  |iles%=0....p%=bu|
000004b0  66 25 0d 02 b2 1a e7 20  28 46 25 20 80 20 31 29  |f%..... (F% . 1)|
000004c0  3d 30 20 80 20 6e 6f 25  3e 30 20 8c 0d 02 bc 12  |=0 . no%>0 .....|
000004d0  20 20 e3 20 69 25 3d 31  20 b8 20 6e 6f 25 0d 02  |  . i%=1 . no%..|
000004e0  c6 43 20 20 20 20 f4 20  66 69 6e 64 20 65 61 63  |.C    . find eac|
000004f0  68 20 78 78 78 47 72 6f  75 70 20 66 69 6c 65 2c  |h xxxGroup file,|
00000500  20 61 64 64 20 67 72 6f  75 70 20 69 66 20 6e 6f  | add group if no|
00000510  74 20 61 6c 72 65 61 64  79 20 70 72 65 73 65 6e  |t already presen|
00000520  74 0d 02 d0 15 20 20 20  20 66 24 3d a4 73 74 72  |t....    f$=.str|
00000530  28 62 75 66 25 29 0d 02  d1 13 20 20 20 20 62 75  |(buf%)....    bu|
00000540  66 25 2b 3d a9 66 24 2b  31 0d 02 ee 18 20 20 20  |f%+=.f$+1....   |
00000550  20 66 69 6c 65 24 3d 64  31 24 2b 22 2e 22 2b 66  | file$=d1$+"."+f|
00000560  24 0d 02 f8 14 20 20 20  20 c8 8e 20 61 63 74 69  |$....    .. acti|
00000570  6f 6e 25 20 ca 0d 03 02  0e 20 20 20 20 20 20 c9  |on% .....      .|
00000580  20 31 3a 0d 03 0c 1f 20  20 20 20 20 20 20 20 6f  | 1:....        o|
00000590  75 74 25 3d a4 6f 70 65  6e 75 70 28 66 69 6c 65  |ut%=.openup(file|
000005a0  24 29 0d 03 16 16 20 20  20 20 20 20 20 20 e7 20  |$)....        . |
000005b0  6f 75 74 25 3e 30 20 8c  0d 03 20 24 20 20 20 20  |out%>0 ... $    |
000005c0  20 20 20 20 20 20 f2 61  64 64 67 72 6f 75 70 28  |      .addgroup(|
000005d0  6f 75 74 25 2c 67 72 6f  75 70 24 29 0d 03 2a 17  |out%,group$)..*.|
000005e0  20 20 20 20 20 20 20 20  20 20 f2 63 66 28 6f 75  |          .cf(ou|
000005f0  74 25 29 0d 03 34 17 20  20 20 20 20 20 20 20 20  |t%)..4.         |
00000600  20 66 69 6c 65 73 25 2b  3d 31 0d 03 3e 0d 20 20  | files%+=1..>.  |
00000610  20 20 20 20 20 20 cd 0d  03 48 0e 20 20 20 20 20  |      ...H.     |
00000620  20 c9 20 32 3a 0d 03 52  23 20 20 20 20 20 20 20  | . 2:..R#       |
00000630  20 f2 64 65 6c 67 72 6f  75 70 28 66 69 6c 65 24  | .delgroup(file$|
00000640  2c 67 72 6f 75 70 24 29  0d 03 5c 15 20 20 20 20  |,group$)..\.    |
00000650  20 20 20 20 66 69 6c 65  73 25 2b 3d 31 0d 03 66  |    files%+=1..f|
00000660  0e 20 20 20 20 20 20 c9  20 33 3a 0d 03 70 23 20  |.      . 3:..p# |
00000670  20 20 20 20 20 20 20 f2  63 6f 70 79 67 72 6f 75  |       .copygrou|
00000680  70 28 66 69 6c 65 24 2c  66 69 6c 65 25 29 0d 03  |p(file$,file%)..|
00000690  7a 15 20 20 20 20 20 20  20 20 66 69 6c 65 73 25  |z.        files%|
000006a0  2b 3d 31 0d 03 84 09 20  20 20 20 cb 0d 03 8e 07  |+=1....    .....|
000006b0  20 20 ed 0d 03 98 05 cd  0d 03 a2 04 0d 03 ac 11  |  ..............|
000006c0  e7 20 61 63 74 69 6f 6e  25 3d 33 20 8c 0d 03 b6  |. action%=3 ....|
000006d0  0d 20 20 d9 23 66 69 6c  65 25 0d 03 c0 1e 20 20  |.  .#file%....  |
000006e0  f4 20 73 6f 72 74 2c 20  74 68 65 6e 20 75 6e 69  |. sort, then uni|
000006f0  71 2c 20 6d 61 79 62 65  0d 03 ca 24 20 20 f2 65  |q, maybe...$  .e|
00000700  78 69 74 28 30 2c 22 41  63 74 69 76 65 20 6c 69  |xit(0,"Active li|
00000710  73 74 20 75 70 64 61 74  65 64 22 29 0d 03 d4 05  |st updated")....|
00000720  cd 0d 03 de 04 0d 03 e8  11 e7 20 61 63 74 69 6f  |.......... actio|
00000730  6e 25 3d 31 20 8c 0d 03  f2 2b 20 20 e7 20 68 65  |n%=1 ....+  . he|
00000740  61 64 25 20 8c 20 68 65  61 64 24 3d 22 68 65 61  |ad% . head$="hea|
00000750  64 22 20 8b 20 68 65 61  64 24 3d 22 66 75 6c 6c  |d" . head$="full|
00000760  22 0d 03 fd 05 cd 0d 04  06 04 0d 04 10 10 e7 20  |".............. |
00000770  66 69 6c 65 73 25 3e 30  20 8c 0d 04 1a 46 20 20  |files%>0 ....F  |
00000780  f2 65 78 69 74 28 30 2c  22 47 72 6f 75 70 20 22  |.exit(0,"Group "|
00000790  2b 67 72 6f 75 70 24 2b  22 20 63 68 61 6e 67 65  |+group$+" change|
000007a0  64 20 69 6e 20 22 2b c3  28 66 69 6c 65 73 25 29  |d in "+.(files%)|
000007b0  2b 22 20 67 72 6f 75 70  20 66 69 6c 65 73 22 29  |+" group files")|
000007c0  0d 04 24 06 20 cc 0d 04  2e 2e 20 20 f2 65 78 69  |..$. .....  .exi|
000007d0  74 28 31 2c 22 43 6f 75  6c 64 20 6e 6f 74 20 63  |t(1,"Could not c|
000007e0  68 61 6e 67 65 20 67 72  6f 75 70 20 73 74 61 74  |hange group stat|
000007f0  75 73 22 29 0d 04 38 05  cd 0d 04 42 05 e0 0d 04  |us")..8....B....|
00000800  4c 04 0d 04 56 1d dd 20  f2 63 6f 70 79 67 72 6f  |L...V.. .copygro|
00000810  75 70 28 66 69 6c 65 24  2c 66 69 6c 65 25 29 0d  |up(file$,file%).|
00000820  04 60 15 ea 20 69 6e 25  2c 69 6e 24 2c 74 61 62  |.`.. in%,in$,tab|
00000830  25 2c 78 25 0d 04 6a 16  69 6e 25 3d a4 6f 70 65  |%,x%..j.in%=.ope|
00000840  6e 69 6e 28 66 69 6c 65  24 29 0d 04 74 0b cf 23  |nin(file$)..t..#|
00000850  69 6e 25 3d 30 0d 04 7e  08 78 25 3d 30 0d 04 88  |in%=0..~.x%=0...|
00000860  1b c8 95 20 28 28 78 25  3c 33 29 20 80 20 28 ac  |... ((x%<3) . (.|
00000870  20 c5 23 69 6e 25 29 29  0d 04 92 0f 20 20 69 6e  | .#in%))....  in|
00000880  24 3d be 23 69 6e 25 0d  04 9c 1c 20 20 e7 20 c0  |$=.#in%....  . .|
00000890  69 6e 24 2c 31 29 3c 3e  22 23 22 20 8c 20 78 25  |in$,1)<>"#" . x%|
000008a0  2b 3d 31 0d 04 a6 05 ce  0d 04 b0 04 0d 04 b1 2b  |+=1............+|
000008b0  f4 20 4f 6b 61 79 2c 20  70 61 73 74 20 72 75 6c  |. Okay, past rul|
000008c0  65 66 69 6c 65 2f 64 61  74 65 2f 68 6f 73 74 6e  |efile/date/hostn|
000008d0  61 6d 65 20 6e 6f 77 0d  04 ba 4c e7 20 c5 23 69  |ame now...L. .#i|
000008e0  6e 25 20 8c 20 f2 63 66  28 6f 75 74 25 29 3a f2  |n% . .cf(out%):.|
000008f0  65 78 69 74 28 31 2c 22  47 72 6f 75 70 20 66 69  |exit(1,"Group fi|
00000900  6c 65 20 70 61 72 73 65  72 20 66 61 69 6c 65 64  |le parser failed|
00000910  20 72 65 61 64 69 6e 67  20 72 75 6c 65 66 69 6c  | reading rulefil|
00000920  65 22 29 0d 04 c4 05 f5  0d 04 ce 0f 20 20 69 6e  |e").........  in|
00000930  24 3d be 23 69 6e 25 0d  04 d8 16 20 20 e7 20 c0  |$=.#in%....  . .|
00000940  69 6e 24 2c 31 29 3c 3e  22 23 22 20 8c 0d 04 e2  |in$,1)<>"#" ....|
00000950  15 20 20 20 20 74 61 62  25 3d a7 69 6e 24 2c bd  |.    tab%=.in$,.|
00000960  39 29 0d 04 ec 23 20 20  20 20 e7 20 74 61 62 25  |9)...#    . tab%|
00000970  3e 30 20 8c 20 69 6e 24  3d c0 69 6e 24 2c 74 61  |>0 . in$=.in$,ta|
00000980  62 25 2d 31 29 0d 04 f6  13 20 20 20 20 d5 23 66  |b%-1)....    .#f|
00000990  69 6c 65 25 2c 69 6e 24  0d 05 00 07 20 20 cd 0d  |ile%,in$....  ..|
000009a0  05 0a 0d fd 20 28 c5 23  69 6e 25 29 0d 05 14 0c  |.... (.#in%)....|
000009b0  f2 63 66 28 69 6e 25 29  0d 05 1e 05 e1 0d 05 28  |.cf(in%).......(|
000009c0  04 0d 05 32 1d dd 20 f2  64 65 6c 67 72 6f 75 70  |...2.. .delgroup|
000009d0  28 66 69 6c 65 24 2c 67  72 6f 75 70 24 29 0d 05  |(file$,group$)..|
000009e0  3c 1f ea 20 69 6e 25 2c  6f 75 74 25 2c 69 6e 24  |<.. in%,out%,in$|
000009f0  2c 74 61 62 25 2c 78 25  2c 74 6d 70 24 0d 05 46  |,tab%,x%,tmp$..F|
00000a00  04 0d 05 50 16 69 6e 25  3d a4 6f 70 65 6e 69 6e  |...P.in%=.openin|
00000a10  28 66 69 6c 65 24 29 0d  05 5a 3b e7 20 69 6e 25  |(file$)..Z;. in%|
00000a20  3d 30 20 8c 20 f2 65 78  69 74 28 31 2c 22 45 72  |=0 . .exit(1,"Er|
00000a30  72 6f 72 20 6f 70 65 6e  69 6e 67 20 67 72 6f 75  |ror opening grou|
00000a40  70 20 66 69 6c 65 20 66  6f 72 20 69 6e 70 75 74  |p file for input|
00000a50  22 29 0d 05 64 1c 6f 75  74 25 3d a4 6f 70 65 6e  |")..d.out%=.open|
00000a60  6f 75 74 28 66 69 6c 65  24 2b 22 7e 22 29 0d 05  |out(file$+"~")..|
00000a70  6e 42 e7 20 6f 75 74 25  3d 30 20 8c 20 f2 63 66  |nB. out%=0 . .cf|
00000a80  28 69 6e 25 29 3a f2 65  78 69 74 28 31 2c 22 45  |(in%):.exit(1,"E|
00000a90  72 72 6f 72 20 6f 70 65  6e 20 74 65 6d 70 20 66  |rror open temp f|
00000aa0  69 6c 65 20 66 6f 72 20  6f 75 74 70 75 74 22 29  |ile for output")|
00000ab0  0d 05 78 04 0d 05 82 08  78 25 3d 30 0d 05 8c 1c  |..x.....x%=0....|
00000ac0  c8 95 20 28 28 78 25 3c  33 29 20 80 20 28 ac 20  |.. ((x%<3) . (. |
00000ad0  c5 23 6f 75 74 25 29 29  0d 05 96 0f 20 20 69 6e  |.#out%))....  in|
00000ae0  24 3d be 23 69 6e 25 0d  05 aa 10 20 20 d5 23 6f  |$=.#in%....  .#o|
00000af0  75 74 25 2c 69 6e 24 0d  05 b4 1b 20 20 e7 20 c0  |ut%,in$....  . .|
00000b00  69 6e 24 2c 31 29 3d 22  23 22 20 8c 20 78 25 2b  |in$,1)="#" . x%+|
00000b10  3d 31 0d 05 be 05 ce 0d  05 c8 2b f4 20 4f 6b 61  |=1........+. Oka|
00000b20  79 2c 20 70 61 73 74 20  72 75 6c 65 66 69 6c 65  |y, past rulefile|
00000b30  2f 64 61 74 65 2f 68 6f  73 74 6e 61 6d 65 20 6e  |/date/hostname n|
00000b40  6f 77 0d 05 d2 6c e7 20  c5 23 69 6e 25 20 8c 20  |ow...l. .#in% . |
00000b50  f2 63 66 28 69 6e 25 29  3a f2 63 66 28 6f 75 74  |.cf(in%):.cf(out|
00000b60  25 29 3a 41 25 3d a4 64  65 6c 66 69 6c 65 28 66  |%):A%=.delfile(f|
00000b70  69 6c 65 24 2b 22 7e 22  29 3a f2 65 78 69 74 28  |ile$+"~"):.exit(|
00000b80  31 2c 22 47 72 6f 75 70  20 66 69 6c 65 20 70 61  |1,"Group file pa|
00000b90  72 73 65 72 20 66 61 69  6c 65 64 20 72 65 61 64  |rser failed read|
00000ba0  69 6e 67 20 72 75 6c 65  66 69 6c 65 22 29 0d 05  |ing rulefile")..|
00000bb0  dc 05 f5 0d 05 e6 0f 20  20 69 6e 24 3d be 23 69  |.......  in$=.#i|
00000bc0  6e 25 0d 05 fa 0e 20 20  74 6d 70 24 3d 69 6e 24  |n%....  tmp$=in$|
00000bd0  0d 06 04 16 20 20 e7 20  c0 69 6e 24 2c 31 29 3c  |....  . .in$,1)<|
00000be0  3e 22 23 22 20 8c 0d 06  0e 15 20 20 20 20 74 61  |>"#" .....    ta|
00000bf0  62 25 3d a7 69 6e 24 2c  bd 39 29 0d 06 18 12 20  |b%=.in$,.9).... |
00000c00  20 20 20 e7 20 74 61 62  25 3e 30 20 8c 0d 06 22  |   . tab%>0 ..."|
00000c10  22 20 20 20 20 20 20 e7  20 67 72 6f 75 70 24 3c  |"      . group$<|
00000c20  3e c0 69 6e 24 2c 74 61  62 25 2d 31 29 20 8c 0d  |>.in$,tab%-1) ..|
00000c30  06 2c 17 20 20 20 20 20  20 20 20 d5 23 6f 75 74  |.,.        .#out|
00000c40  25 2c 74 6d 70 24 0d 06  36 0b 20 20 20 20 20 20  |%,tmp$..6.      |
00000c50  cd 0d 06 40 09 20 20 20  20 cc 0d 06 4a 19 20 20  |...@.    ...J.  |
00000c60  20 20 20 20 e7 20 67 72  6f 75 70 24 3c 3e 69 6e  |    . group$<>in|
00000c70  24 20 8c 0d 06 54 17 20  20 20 20 20 20 20 20 d5  |$ ...T.        .|
00000c80  23 6f 75 74 25 2c 74 6d  70 24 0d 06 5e 0b 20 20  |#out%,tmp$..^.  |
00000c90  20 20 20 20 cd 0d 06 68  09 20 20 20 20 cd 0d 06  |    ...h.    ...|
00000ca0  72 07 20 20 cc 0d 06 7c  13 20 20 20 20 d5 23 6f  |r.  ...|.    .#o|
00000cb0  75 74 25 2c 74 6d 70 24  0d 06 86 07 20 20 cd 0d  |ut%,tmp$....  ..|
00000cc0  06 90 0d fd 20 28 c5 23  69 6e 25 29 0d 06 9a 0c  |.... (.#in%)....|
00000cd0  f2 63 66 28 69 6e 25 29  0d 06 a4 0d f2 63 66 28  |.cf(in%).....cf(|
00000ce0  6f 75 74 25 29 0d 06 ae  16 61 25 3d a4 64 65 6c  |out%)....a%=.del|
00000cf0  66 69 6c 65 28 66 69 6c  65 24 29 0d 06 b8 1f 61  |file(file$)....a|
00000d00  25 3d a4 72 65 6e 61 6d  65 28 66 69 6c 65 24 2b  |%=.rename(file$+|
00000d10  22 7e 22 2c 66 69 6c 65  24 29 0d 06 c2 05 e1 0d  |"~",file$)......|
00000d20  06 cc 04 0d 06 d6 04 0d  06 e0 04 0d 06 ea 1c dd  |................|
00000d30  20 f2 61 64 64 67 72 6f  75 70 28 6f 75 74 25 2c  | .addgroup(out%,|
00000d40  67 72 6f 75 70 24 29 0d  06 f4 18 ea 20 69 6e 24  |group$)..... in$|
00000d50  2c 74 61 62 25 2c 78 25  2c 66 6f 75 6e 64 25 0d  |,tab%,x%,found%.|
00000d60  06 fe 0c 66 6f 75 6e 64  25 3d a3 0d 07 08 0c cf  |...found%=......|
00000d70  23 6f 75 74 25 3d 30 0d  07 12 08 78 25 3d 30 0d  |#out%=0....x%=0.|
00000d80  07 1c 1c c8 95 20 28 28  78 25 3c 33 29 20 80 20  |..... ((x%<3) . |
00000d90  28 ac 20 c5 23 6f 75 74  25 29 29 0d 07 26 10 20  |(. .#out%))..&. |
00000da0  20 69 6e 24 3d be 23 6f  75 74 25 0d 07 30 1c 20  | in$=.#out%..0. |
00000db0  20 e7 20 c0 69 6e 24 2c  31 29 3c 3e 22 23 22 20  | . .in$,1)<>"#" |
00000dc0  8c 20 78 25 2b 3d 31 0d  07 3a 05 ce 0d 07 44 2b  |. x%+=1..:....D+|
00000dd0  f4 20 4f 6b 61 79 2c 20  70 61 73 74 20 72 75 6c  |. Okay, past rul|
00000de0  65 66 69 6c 65 2f 64 61  74 65 2f 68 6f 73 74 6e  |efile/date/hostn|
00000df0  61 6d 65 20 6e 6f 77 0d  07 4e 4d e7 20 c5 23 6f  |ame now..NM. .#o|
00000e00  75 74 25 20 8c 20 f2 63  66 28 6f 75 74 25 29 3a  |ut% . .cf(out%):|
00000e10  f2 65 78 69 74 28 31 2c  22 47 72 6f 75 70 20 66  |.exit(1,"Group f|
00000e20  69 6c 65 20 70 61 72 73  65 72 20 66 61 69 6c 65  |ile parser faile|
00000e30  64 20 72 65 61 64 69 6e  67 20 72 75 6c 65 66 69  |d reading rulefi|
00000e40  6c 65 22 29 0d 07 58 05  f5 0d 07 62 10 20 20 69  |le")..X....b.  i|
00000e50  6e 24 3d be 23 6f 75 74  25 0d 07 6c 16 20 20 e7  |n$=.#out%..l.  .|
00000e60  20 c0 69 6e 24 2c 31 29  3c 3e 22 23 22 20 8c 0d  | .in$,1)<>"#" ..|
00000e70  07 76 15 20 20 20 20 74  61 62 25 3d a7 69 6e 24  |.v.    tab%=.in$|
00000e80  2c bd 39 29 0d 07 80 23  20 20 20 20 e7 20 74 61  |,.9)...#    . ta|
00000e90  62 25 3e 30 20 8c 20 69  6e 24 3d c0 69 6e 24 2c  |b%>0 . in$=.in$,|
00000ea0  74 61 62 25 2d 31 29 0d  07 8a 1f 20 20 20 20 e7  |tab%-1)....    .|
00000eb0  20 69 6e 24 3d 67 72 6f  75 70 24 20 8c 20 66 6f  | in$=group$ . fo|
00000ec0  75 6e 64 25 3d b9 0d 07  94 07 20 20 cd 0d 07 9e  |und%=.....  ....|
00000ed0  1b fd 20 28 28 c5 23 6f  75 74 25 29 20 84 20 28  |.. ((.#out%) . (|
00000ee0  66 6f 75 6e 64 25 29 29  0d 07 a8 12 e7 20 28 ac  |found%))..... (.|
00000ef0  20 66 6f 75 6e 64 25 29  20 8c 0d 07 b2 13 20 20  | found%) .....  |
00000f00  cf 23 6f 75 74 25 3d a2  23 6f 75 74 25 0d 07 c6  |.#out%=.#out%...|
00000f10  23 20 20 d5 23 6f 75 74  25 2c 67 72 6f 75 70 24  |#  .#out%,group$|
00000f20  2b bd 28 39 29 2b c3 28  6e 75 6d 62 65 72 25 29  |+.(9)+.(number%)|
00000f30  0d 07 d0 45 20 20 f4 20  54 68 69 73 20 63 6f 75  |...E  . This cou|
00000f40  6c 64 20 62 65 20 30 2c  20 6d 65 61 6e 69 6e 67  |ld be 0, meaning|
00000f50  20 66 65 74 63 68 20 77  68 6f 6c 65 20 67 72 6f  | fetch whole gro|
00000f60  75 70 2c 20 6f 72 20 73  6f 6d 65 74 68 69 6e 67  |up, or something|
00000f70  20 65 6c 73 65 0d 07 da  2c 20 20 f4 20 74 6f 20  | else...,  . to |
00000f80  63 61 74 63 68 20 74 68  65 20 67 72 6f 75 70 20  |catch the group |
00000f90  75 70 28 69 65 2e 20 2d  31 20 3b 2d 29 2e 2e 2e  |up(ie. -1 ;-)...|
00000fa0  2e 0d 07 e4 05 cd 0d 07  ee 05 e1 0d 07 f8 04 0d  |................|
00000fb0  08 02 04 0d 08 0c 11 dd  f2 65 78 69 74 28 6e 25  |.........exit(n%|
00000fc0  2c 61 24 29 0d 08 20 25  ff 28 22 73 65 74 20 4e  |,a$).. %.("set N|
00000fd0  65 77 73 42 61 73 65 24  52 65 74 75 72 6e 43 6f  |ewsBase$ReturnCo|
00000fe0  64 65 20 22 2b c3 6e 25  29 0d 08 2a 24 ff 28 22  |de "+.n%)..*$.("|
00000ff0  73 65 74 20 4e 65 77 73  42 61 73 65 24 52 65 74  |set NewsBase$Ret|
00001000  75 72 6e 49 6e 66 6f 20  22 2b 61 24 29 0d 08 34  |urnInfo "+a$)..4|
00001010  05 e0 0d 08 3e 04 0d 08  48 0d dd a4 73 74 72 28  |....>...H...str(|
00001020  61 25 29 0d 08 52 2a ea  61 24 3a c8 95 20 3f 61  |a%)..R*.a$:.. ?a|
00001030  25 3e 33 31 80 a9 61 24  3c 32 35 35 3a 61 24 2b  |%>31..a$<255:a$+|
00001040  3d bd 3f 61 25 3a 61 25  2b 3d 31 3a ce 0d 08 5c  |=.?a%:a%+=1:...\|
00001050  07 3d 61 24 0d 08 66 04  0d 08 70 15 dd a4 67 65  |.=a$..f...p...ge|
00001060  74 70 61 72 28 f8 20 41  24 2c 73 24 29 0d 08 7a  |tpar(. A$,s$)..z|
00001070  0a ea 42 24 2c 6c 25 0d  08 84 0e 6c 25 3d a7 41  |..B$,l%....l%=.A|
00001080  24 2c 73 24 29 0d 08 8e  0a e7 6c 25 3e 30 8c 0d  |$,s$).....l%>0..|
00001090  08 98 1f 20 20 42 24 3d  c0 41 24 2c 6c 25 2d 31  |...  B$=.A$,l%-1|
000010a0  29 3a 41 24 3d c1 41 24  2c 6c 25 2b 31 29 0d 08  |):A$=.A$,l%+1)..|
000010b0  a2 07 20 20 cc 0d 08 ac  11 20 20 42 24 3d 41 24  |..  .....  B$=A$|
000010c0  3a 41 24 3d 22 22 0d 08  b6 05 cd 0d 08 c0 07 3d  |:A$="".........=|
000010d0  42 24 0d 08 ca 04 0d 08  d4 13 dd a4 72 65 6e 61  |B$..........rena|
000010e0  6d 65 28 73 24 2c 64 24  29 0d 08 de 2a ea 46 25  |me(s$,d$)...*.F%|
000010f0  3a c8 99 22 58 4f 53 5f  46 53 43 6f 6e 74 72 6f  |:.."XOS_FSContro|
00001100  6c 22 2c 32 35 2c 73 24  2c 64 24 b8 65 72 72 25  |l",25,s$,d$.err%|
00001110  3b 46 25 0d 08 e8 0d e7  28 46 25 80 31 29 20 8c  |;F%.....(F%.1) .|
00001120  0d 08 f2 15 20 20 46 25  3d a4 64 65 6c 66 69 6c  |....  F%=.delfil|
00001130  65 28 64 24 29 0d 08 fc  28 20 20 c8 99 22 58 4f  |e(d$)...(  .."XO|
00001140  53 5f 46 53 43 6f 6e 74  72 6f 6c 22 2c 32 35 2c  |S_FSControl",25,|
00001150  73 24 2c 64 24 b8 65 72  72 25 3b 46 25 0d 09 06  |s$,d$.err%;F%...|
00001160  05 cd 0d 09 10 0b 3d 28  46 25 80 31 29 0d 09 1a  |......=(F%.1)...|
00001170  04 0d 09 24 11 dd a4 64  65 6c 66 69 6c 65 28 66  |...$...delfile(f|
00001180  24 29 0d 09 2e 1d ea 46  25 3a c8 99 22 58 4f 53  |$).....F%:.."XOS|
00001190  5f 46 69 6c 65 22 2c 36  2c 66 24 b8 3b 46 25 0d  |_File",6,f$.;F%.|
000011a0  09 38 0b 3d 28 46 25 80  31 29 0d 09 42 04 0d 09  |.8.=(F%.1)..B...|
000011b0  4c 04 0d 09 56 10 dd a4  6f 70 65 6e 69 6e 28 66  |L...V...openin(f|
000011c0  24 29 0d 09 60 13 3d a4  66 6f 70 65 6e 28 66 24  |$)..`.=.fopen(f$|
000011d0  2c 26 34 46 29 0d 09 6a  04 0d 09 74 11 dd a4 6f  |,&4F)..j...t...o|
000011e0  70 65 6e 6f 75 74 28 66  24 29 0d 09 7e 13 3d a4  |penout(f$)..~.=.|
000011f0  66 6f 70 65 6e 28 66 24  2c 26 38 46 29 0d 09 88  |fopen(f$,&8F)...|
00001200  04 0d 09 92 10 dd a4 6f  70 65 6e 75 70 28 66 24  |.......openup(f$|
00001210  29 0d 09 9c 07 ea 68 25  0d 09 a6 15 68 25 3d a4  |).....h%....h%=.|
00001220  66 6f 70 65 6e 28 66 24  2c 26 43 46 29 0d 09 b0  |fopen(f$,&CF)...|
00001230  1b e7 68 25 3d 30 8c 68  25 3d a4 66 6f 70 65 6e  |..h%=0.h%=.fopen|
00001240  28 66 24 2c 26 38 46 29  0d 09 ba 07 3d 68 25 0d  |(f$,&8F)....=h%.|
00001250  09 c4 04 0d 09 ce 12 dd  a4 66 6f 70 65 6e 28 66  |.........fopen(f|
00001260  24 2c 72 25 29 0d 09 d8  0d ea 68 25 2c 6c 25 2c  |$,r%).....h%,l%,|
00001270  46 25 0d 09 e2 1c c8 99  22 58 4f 53 5f 46 69 6e  |F%......"XOS_Fin|
00001280  64 22 2c 72 25 2c 66 24  b8 68 25 3b 46 25 0d 09  |d",r%,f$.h%;F%..|
00001290  ec 10 e7 28 46 25 80 31  29 8c 68 25 3d 30 0d 09  |...(F%.1).h%=0..|
000012a0  f6 07 3d 68 25 0d 0a 00  04 0d 0a 0a 0e dd f2 63  |..=h%..........c|
000012b0  66 28 f8 20 68 25 29 0d  0a 14 07 ea 6c 25 0d 0a  |f(. h%).....l%..|
000012c0  1e 20 e7 68 25 3e 30 8c  c8 99 22 58 4f 53 5f 46  |. .h%>0..."XOS_F|
000012d0  69 6e 64 22 2c 30 2c 68  25 3a 68 25 3d 30 0d 0a  |ind",0,h%:h%=0..|
000012e0  28 05 e1 0d 0a 32 04 0d  ff                       |(....2...|
000012e9