home *** CD-ROM | disk | FTP | other *** search
- SBP
- ╜ ideas93 create a word list and count for any text document
- ╩ f e
- í J("TempFile.SBF") p
- ┤ Ö"TempFile"
- ╛ Ö"TempFile"
- Æ í
- ë"TempFile"
- |"Word;TXT IXD;40;1,1"
- |"Instances;NUM;9999.;2,1"
- ¬"TempFile"
- ┬"Please select a text file for input","",13,req%,req$
- íreq% 0
- req$ "" p Æ
- ┤req$ ¢ ñ
- ╪ O B("*")
- ñ cx$
- x$ H(x$)
- íx$ "" p wendline
- í .( -(x$,1))
- 33 px$ +(x$, /(x$) 1)
- x$ x$ " "
- {x$
- front% 1:back% 1
- ╪back% 0
- back% ?(front%,x$," ")
- íback% front% p
- word$ H( ,(x$,front%,(back% front%)))
- word$ >(word$)
- í /(word$) 40 pword$ +(word$,40)
- ╪ /(word$) 0
- a% .( +(word$,1))
- ía% 64 a%
- 91 p
- í J(word$,Word.TempFile) p
- ╔ Ñword$
- Instances Instances 1
- ╠ Ö"TempFile"
- ^
- ü Ö"TempFile"
- Word Word$
- Instances 1
- ╠ Ö"TempFile"
- uniq% uniq% 1
- Æ í
- words% words% 1:word$ ""
- Æ í
- í /(word$) pword$ -(word$, /(word$) 1)
- ┘
- front% back% 1
- Æ í
- íback% front% pfront% front% 1
- ┘
-
- endline:
- ┘
- å ñ
- ç: ╩ n: ╩ f │
- {"Alphabetic listing of all words used"
- ╔ `: ╬
- ╪ O B("TempFile")
- ╔ ▒: ╬
- ┘
- {"Number of words = "; (words%,"999999")
- {"Number of unique words = "; (uniq%,"999999")
- {
-
-
-