Larry, Sorry for the simple-minded question, but would you mind explaining the logic of the above script. It works great for what I'm using, but I can't figure out why it works. For example, the FileRead function and the FileWrite functions work differently than I expected. I'm a little new at this. Thanks in advance.