home *** CD-ROM | disk | FTP | other *** search
- Text File to Dialbook.DIR conversion
-
- Dialbook is a program to convert a fixed length record text file into
- the Complete FAX/Communicator file format. The input file can be
- created with a database by producing a text file report having the following
- format. Each line will be a record. Each record will have the
- following fields: Name - 20 characters
- CAMPhone - for FAX this will be blank. 27 characters
- FAXPhone - 27 characters
- Polling Password - 8 characters.
-
- See the included TEST.DAT file for an example of an input file.
-
- To run the program type
-
- DIALBOOK <infilename>
-
- There <infilename> is the name of the text file you wish to convert.
-
- ┌───────────────────────────────────────────────────────────────────────────┐
- │ │
- │ This program and the accompanying source code are Copyright 1990 by │
- │ Phil Miller. You may feel free to make changes to the program for your │
- │ own use only. Please do not change the program and then proffer it to │
- │ others for sale! │
- │ ALL RIGHTS RESERVED │ │
- └───────────────────────────────────────────────────────────────────────────┘
-
- Source Code
-
- The souce code for this program is included. Note that there is a
- TPString unit that must be obtained in order to compile this program as
- is. There are only two functions used from it: Pad, which pads blank
- characters out (mostly used for Polling Password) and StUpCase which
- converts a string to upper case. Both of these functions should be easy
- to reproduce if you need to. The unit is from a Library of routines
- from Turbo Power called Turbo Professional 5.0. If you are in any way
- serious about TP programming you should have them, or a similar library
- that you can substitute for these functions.
-
- Source code is included to show how to BlockWrite your way to the ASCIIZ
- structure necessary to reproduce the file format. Quick C and Turbo C
- programmers will be quick to notice that their language is easier to
- manipulate for this purpose than is Turbo Pascal.
-
- If you improve this program, please upload a copy to me. I would be
- happy to replace my copy with yours along with the credit for whatever
- changes you made.
-
- If you distribute this program, make sure you do so intact. This
- program was produced entirely by me, without supervision or assistance
- from The Complete PC Engineering. As such is is to be used AS IS.
- In particular it will NOT catch errors such as:
- You can convert more than 999 records into your Phone Book.
- DON'T DO THIS!!!
- Reading a phonebook with more than 999 entries will cause
- unpredictable things with CFAX.
- Create more than one DIALBOOK.DIR (Phone1.DIR, Phone2.DIR) and
- rename with DOS to DIALBOOK.DIR to get what you need.
-
- In the future, I will be improving this program. In particular the
- following are on my list:
- 1. Create a Pascal file that can hold unlimited phone entries
- including Company and a text annotation area. The entries can
- be selected for export to a DIALBOOK.DIR or Group files as needed.
-
- 2. Read in the Send and Receive Logs in, sort them on a given field
- and provide features to print and browse them.
-
- 3. Provide a Group and Phonebook Editor: Browse, print, and
- Edit functions
-
- If you have other suggestions, please let me know. I will address them
- as time allows.
-
- Phil Miller
- 408-434-9702 Complete Communicator
- 408-434-9600 Voice
-
-
- ──────────────────────────────Further work History──────────────────────────┐
- │
- 9-13-90 - 999 entry limit is now done. │
- │
- 9-20-90 - Fixed an error in CFAX groups. They will read and write │
- properly now. │
- │
- 9-28-90 - Adding a CCOM unit to provide support for CCOM group files. │
- CCOM groups have a slightly different format: They have a CAMPhone field │
- (for Outgoing message recipient lists) that CFAX does not have. │
- │
- ────────────────────────────────────────────────────────────────────────────┘
-