I'm not familiar with bash arrays, but here's an example on how to use a list stored in a file and a while loop:
#!/bin/bash
# path to file
input="lists.txt"
# read a file line-by-line using while loop
while IFS= read -r line
do
printf 'processing %s file\n' "$line"
done < "$input"