Each record in the database has the name of a file. The array holds the current filename. It loops through each record and produces a text file with that name. The file has the desired data content in it that I desire.