Have you ever run a script?

You create a text file and put your code in the text file.
Then you save the file typically with a .KIX extension.
Then run it like this (assuming you have KIX32.EXE in C:SCRIPTS folder)


It will then process what you have in the script file.

The ReadLine is a UDF and there is an FAQ here on the board to show you how to use them.

Basically you add the code portion of the UDF to your script and call it.
You DO NOT modify the UDF code

ReadFile($file) for you to call would be