Chris,
No prob... I'll try and explain...

First, the $CRLF variable is simply created to be used later in WriteLine(). It's not necessary to make it a variable, just a common practice. I could just as easily have used "WriteLine(1,$Line+CHR(13)+CHR(10))"

The If Open() statements are just standard error trapping. They are not nested but branched, as there is no point in proceeding if the first Open() fails.

You need two Open() statements, one for the Newlog in "create/write" mode (hence the "5"), and the second for log.txt in "read" (hence no 3rd par). The "5" is really 1 (If the file does not exist, OPEN will create a new file) + 4 (Opens the file for write access).

[ 27 January 2002: Message edited by: LLigetfa ]

_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.