home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CP/M
/
CPM_CDROM.iso
/
beehive
/
utilitys
/
fml.arc
/
LOOKUP.DOC
< prev
next >
Wrap
Text File
|
1990-07-21
|
2KB
|
42 lines
LOOKUP
"LOOKUP.COM" allows you to use your computer as an electronic telephone
book. It isn't fancy, but it's small and fast.
Use the WordStar "N" command to create a file called "BOOK" that contains
a list of names and telephone numbers, one per line. (WARNING: if you
use the "D" command to create the BOOK file, this program will not work
properly.) Use all upper case letters, unless you wish to include non-
searchable lower-case comments in your records.
LOOKUP.COM loads the entire BOOK file into RAM, and then prompts with
'==>' for an input string. The string may be up to 128 bytes long.
Lower case letters are converted to upper case. A question mark is a
"wild card" that will match any character. (But if a question mark is
the first character in the search string it is treated literally.)
The entire file is searched. When a match is found, the line containing
the string is printed on the screen. The output can also be sent to the
printer using the CP/M convention: ^P.
BOOK files of up to 50k have been tested and work fine; that's about 1500
entries. Larger files are truncated and the portion that fits in memory
is used.
To exit the program, hit <RETURN> in response to the '==>' prompt.
This program is a general-purpose search routine, and will work with any
ASCII file (but not Wordstar 'document' files) using carriage returns as
record delimiters. Use the form 'LOOKUP FILENAME.TYP' to search for
strings in a file other than 'BOOK.' This overrides the default for
the current session only.
To change the file to be search permanently, patch the .COM file starting at
103h = default data file name. Must be exactly 11 bytes long, in the
form 'FILENAMETYP' -- no period between name and type. Pad the name and
type with blanks (ASCII 20h). Also, you will probably want to REName
the patched file.
Jim Schenkel 415/928-4445 September 1, 1982