home *** CD-ROM | disk | FTP | other *** search
- 10 print"[147]file scanner":poke53280,0:poke53281,0
- 100 data 162,0,169,0,157,0,48,157,0,49,232,208,247
- 110 data 162,1,32,198,255,32,228,255
- 120 data 170,254,0,48,208,3,254,0,49
- 130 data 165,144,240,240,32,204,255,96
- 200 for j=9472 to 9509
- 210 read x
- 220 t=t+x
- 230 poke j,x
- 240 next j
- 250 if t<>4954 then stop
- 300 input "file name";f$
- 310 open 15,8,15
- 320 open 1,8,2,f$
- 330 input#15,a,b$,c,d
- 340 if a<>0 then print b$:end
- 350 sys 9472
- 360 close 1
- 370 close 15
- 400 c=0:p=0:n=0:for j=0 to 95
- 410 if j>64 and j<91 goto 520
- 420 v=peek(12288+j)+256*peek(12544+j)
- 430 if j=0 then print "nulls:";v:goto 520
- 440 if j=13 then print "returns:";v:goto 520
- 450 if j=32 then print "spaces:";v:goto 520
- 460 if j=34 then print "quotes:";v:goto 520
- 470 if j=44 then print "commas:";v:goto 520
- 480 if j=58 then print "colons:";v:goto 520
- 490 if j<32 then c=c+v:goto 520
- 500 if j>47 and j<58 then n=n+v:goto 520
- 510 p=p+v
- 520 next j
- 530 print "control:";c
- 540 print "numerics:";n
- 550 print "punctuation:";p
- 560 l=0:u=0:for j=65 to 90
- 570 v=peek(12288+j)+256*peek(12544+j)
- 580 l=l+v
- 590 v=peek(12288+128+j)+256*peek(12544+128+j)
- 600 u=u+v
- 610 next j
- 620 print "upper case alpha:";u
- 630 print "lower case alpha:";l
- 640 t=0:for j=96 to 255
- 650 if j>128+64 and j<128+91 goto 680
- 660 v=peek(12288+j)+256*peek(12544+j)
- 670 t=t+v
- 680 next j
- 690 print "unusual characters:";t
-