Thanks, but the code I posted was not written to be the most concise and direct way to perform a task. It was written to demonstrate the error that I found. It may be oddly structured as a result. The choice of file names is really secondary to the problem.