ADDTEXT and MERGTEXT Manipulating textfiles with an HP71 is not the easiest of tasks. To help out I offer ADDTEXT and MERGTEXT. The former is entirely my own work but the latter is a modified version of a program I found on one of the swapdiscs. In essence ADDTEXT adds textfiles side by side and MERGTEXT adds textfiles end to end. Both programs require either TEXTUTIL or EDLEX: for lines 115, 121 and 124 in ADDTEXT and for line 106 in MERGTEXT. If you do not have either of these lexfiles then send me an sae for a hexdump which you can turn into a lexfile using MAKELX2 from V7N1P28. If you include either a card, a tape or a disc I will record it for you. ADDTEXT - The Instructions To use ADDTEXT simply RUN it. At the first prompt you should enter the name of the 'LHS' file, (the file that is to appear on the LHS of the combined file, followed by the name of the 'RHS' file (the file you wish to appear on the RHS of the combined file) and finally the name of the FINAL (combined) file and then key ENDLINE. The program will then display the maximum width of the LHS and RHS files and prompt you for the width of the LHS and RHS 'columns' in the combined file. The original LHS file will appear left-justified in the LHS column and the RHS file left-justified in the RHS column. After the adding process is complete you will be prompted for a fresh pair of files. Keying ENDLINE without entering any names will terminate program usage. The program automatically takes care of files of unequal length. There is one limitation - the overall width of the FINAL file can't be more than 96 characters long unless you alter line 101 (DIM Z$[xx]) accordingly. 100 ! ADDTEXT 101 DESTROY ALL @ STD @ OPTION BASE 1 @ DIM Z$[96] 102 ON ERROR GOTO 119 @ BEEP 200 @ INPUT "LHS,RHS,Final : ";L$,R$,F$ @ OFF ERROR 103 Q$=L$ @ GOSUB 'WL' @ L0=W @ L1=L @ Q$=R$ @ GOSUB 'WL' @ R0=W @ R1=L 104 IF L1>R1 THEN Q$=R$ @ GOSUB 'ALIN' 105 IF L1