Fortune Cookie v1.1 by Jon Morrison  copyright 1995-97 Side Effects

This is just a little toy that took no time at all to write.  So I'm giving
it to you for free.  To use it just copy 'FortuneCookie' program and the
'Cookie' files to a drawer.  'C:' is a good choice.  Now if you have a
Startup Manager that can load cli/shell/wb programs you are in luck.

There is now an icon for this program, so if you want you can just stick it
in the WBstartup drawer.  If you are going to use the Icon you will have to
tell the program where it can find the cookie file.  Enter the Icon
Information and change the 'COOKIE=DH2:Utils/cookie' to where you have put
the cookie file.  eg.  'COOKIE=C:cookie'

Now if you have a startup manager like 'StartupPlus' (I made this one)
enter the prefs program and enter something like this into the Execution
Sequence (Order).

eg. dh2:utils/fortunecookie dh2:utils/cookie <-- For Dos/Shell execution
    dh2:utils/fortunecookie                  <-- For WorkBench

Now if you are using Dos/Shell set the execution type to AmigaDos so that
it is executed correctly, or if you are using WBench Select WorkBench.


To edit the contence of the 'Cookie' (this is the file which contains all
the smart ass sayings, quoats etc, etc) load it into a text editor.  Now on
the first like will be a number, '250' for example.  Add one to this number
for every new line you have added to the file.

Once you have finished editing the file, find out how many lines are in the
file and put that number at the top of the file.

--------------------------- Top of file -----------------------------------
6                                <--- Line No. 1
Jon was here\0                   <--- Line No. 2
So was Paul\0                    <--- Line No. 3
and Wendy,\0                     <--- Line No. 4
Peter Pan,\0                     <--- Line No. 5
Tincker Bell\0                   <--- Line No. 6
and of course Robin Willams\0    <--- Line No. 7
------------------------- Bottom of file ----------------------------------

As you can see there are 7 lines so you enter 7 at the top of the page.
It's that easy.

To format you quoats so that they apper in the requester as you would like
them, there are to formaters you can use.  There taken from the 'C'
language.  There is '\n'.  This little symbol means new line and '\t' which
inserts a tab of 4 charaters.  When you have finished writting in the quoat
end the the line with '\0'.  It's what I'm using for a NULL terminator.  Oh
don't make any of the quoats excede 256 charcters, including the \n's, \t's
and the \0.

eg. This
       Lionel Morrison, 60 Furzefield Road, Welwyn Garden City

    becomes this
       Lionel Morrison,\n60 Furzefield Road,\nWelwyn Garden City\0


    Now the latter line will be displayed like this:

    Lionel Morrison,
    60 Furzefield Road,
    Welwyn Garden City


If in dought you can drop me a line at:

Lionel Morrison
60 Furzefield Road
Welwyn Garden City
Hertfordshire
AL7 3RJ

L.J.Morrison@herts.ac.uk

or

look at the orignal cookie file.

Cookie last updated on the 21 January 1997. Now has 300+ quoats.