home *** CD-ROM | disk | FTP | other *** search
- 2 READLEN=10240
- 10 OPEN "dbase.msg" AS 1 LEN=READLEN:FIELD 1,READLEN AS D$
- 20 GET 1:T$=D$
- 30 WHILE T$<>CHR$(26)
- 40 IMAX=ASC(T$):TLEN=ASC(MID$(T$,3,1))+256*ASC(MID$(T$,4,1))+1
- 50 TTOP=IMAX*4+5:ITOP=TTOP:PRINT IMAX,TLEN,TTOP
- 60 WHILE TTOP+TLEN>=LEN(T$):GET 1:T$=T$+D$:WEND
- 70 FOR I=1 TO IMAX
- 80 ILEN=INSTR(ITOP,T$,CHR$(0)):PRINT ITOP,ILEN
- 90 I$=MID$(T$,ITOP,ILEN-1):PRINT I;I$
- 100 ITOP=ITOP+ILEN
- 110 NEXT I
- 120 T$=MID$(T$,TTOP+TLEN)
- 130 WEND
- 1000 OPEN "DBASE.MSG" AS 1 LEN=1:FIELD 1,1 AS D$:WHILE -1:GET 1:PRINT ASC(D$);:WEND