home *** CD-ROM | disk | FTP | other *** search
- Fortune v1.51 (c)1988 by Kerry K. Flint
- Documentation File
-
- The main purpose of writting this program was to write a program similiar to
- a fortune program like that on unix and PC systems which ran quickly.
-
-
- Included in this file are these files:
-
- FORTUNE.TOS - Program to be run in your .bat file
- FORTUNE.TXT - Data file containing the "fortunes"
- FORTUNE.DOC - This documentation
- FORTUNE.DAT - Data file containing info on fortune.txt
- FORTUNE.PTR - Data file containing pointers
- FORTUNE.INF - Data file containing path of output file
- CONVERT.TOS - Program to convert Quoter 3.0 file to fortune
-
- Setting up FORTUNE is easy...
-
- 1- Copy all these files into the main BBS directory on your base drive.
- You may optionally put them into a folder. See below for info on how
- to do this.
-
- 2- edit the file called FORTUNE.INF.
- On the 1st line of the file you need to specify whether the program
- should overwrite the output file or append to the file. To do this
- the 1st line should either contain 'append' or 'overwrite' in either
- all lower case or all upper case letters.
- The 2nd line should contain the path to the output file of the fortune.
- The path must be the 2nd line of the file, start at the first column of
- the line and end with a carriage return and line feed.
- Some suggestions as to the file to use include
- DATNOTE.TXT, NOTICE.TXT, LOGOFF.TXT... Anyfile you wish can be used.
- An example of the file is
- APPEND
- C:\BBS\TXT\DATNOTE.TXT
-
- Another example
- overwrite
- c:\forem\text\notice.txt
-
-
- 3- Execute the FORTUNE.TOS program for the first time to initialize data
- that may need to be initialized.
-
- *NOTE* If you ever need to force a re-initialization because you are getting
- Errors when run, just delete the file fortune.dat. If this file is
- not found when the program runs, initialization is forced!
-
- 4- Add the command in the appropriate batch files. If you want the fortune
- to be updated after each caller put it in logoff.bat, daily put it in
- fmaint.bat or daily.bat, ect.
-
- If you put all the files to this program in your main bbs directory
- (the same one forem is run from) then the entry in your .bat file
- should be the pathname to the program. Example :
- E:\FOREM\FORTUNE.TOS
-
- TO PUT THE FILES INTO A FOLDER
- ---------------------------
- In version 1.4 the ability for all the files to be placed in any
- subdirectory was added. A command line aproach was taken over a
- info file that would have to be in the forem directory because my
- forem folder is getting to full!!!!
-
- If no command line is found then the program assumes that the data files
- are on the current drive in the current folder. Which when run from forem
- always means the folder that forem.tos is in.
-
-
- Anyways, to use the folder option do the following:
-
- 1 - Copy all the files to the folder desired. If you want the FORTUNE.TOS
- file and the data files to be in seperate folders they may be.
- The following files must be in data folder though :
- FORTUNE.TXT
- FORTUNE.INF
- The other files will be initialized into this folder the first time
- Fortune.tos is run if they are not present!
-
- 2 - Edit your .bat file to look like this:
-
- path_prg\fortune.tos path_data\
-
- where path_prg is the complete pathname to FORTUNE.TOS and
- path_data is the complete pathname to the data files.
- It MUST be terminated with a back slash!
-
- My BBS EXAMPLE's
- for a new quote every caller I put in logoff.bat file:
- E:\FOREM\FORTUNE\FORTUNE.TOS E:\FOREM\FORTUNE\
- for a daily change in the quote I put in daily.bat :
- E:\FOREM\FORTUNE\FORTUNE.TOS E:\FOREM\FORTUNE\
-
- ADDING FORTUNES
- ---------------
- If you want to add fortunes to the existing file, all you need to do is
- type in the text at the bottom of the file, and terminate it with an
- at sign ("@") as the last line of every quote. The "@" must be
- the first character of the line. Any text on that line after the "@" is
- ignored!
-
- If you don't like the included file, you can generate your own in a like
- manner; create a FORTUNE.TXT file and just start typing in fortunes, each
- terminated by a line starting with an '@' on it.
-
- When FORTUNE.TOS runs and detects a change in the fortune.txt file it will
- reread fortune.txt and write a new fortune.dat file and fortune.ptr file.
- Thus there is no need for you to tell it to re-initialize anything.
-
- USING QUOTER 3.0 FILES
- ----------------------
- Due to requests by my beta testers, a program was written to convert the
- public domain program QUOTER 3.0 quote file to a FORTUNE.TXT file. To due
- this put the scene.dat file you used for quoter into the directory you wish
- to write fortune.txt to. Run the program CONVERT.TOS. If you run convert.tos
- from a differant path than the one you want output to go to pass it a parameter
- that is the path were output should go. If no parameter is passed the path
- that the program is run from is assumed.
-
-
- This program is put into the public domain on 8-3-1988.
- distribute these files in any way you wish provided this document
- accompanies the files, and the files are not sold for profit.
-
- DISCLAIMER:
-
- I make no representations or warranties with respect to the contents
- hereof and specifically disclaim all warranties of merchantability or
- fitness for any particular purpose. This document is subject to change
- without notice.
-
-
-
- Allthough no fee is required to use this program, if you feel that
- it is a benifit to your BBS and warrents a donation ($5-$10) to the
- author to keep him inspired enough to write more programs send them
- to
-
- Kerry K. Flint
- 420 Shamrock Dr.
- Henderson, NV 89015
-
- Source code available for a price!
-
- I can be reached on the following BBS -
-
- The Entertainment Center BBS
- FNET Node 285
- (702) 796-3214
- Kerry Flint
-
-