i am having a directory
DIR1. it contains following files and sub directories
text1.txt
result.txt
DIR2
inside DIR2 again i have some files like
data.file data2.file
now i want to find files of type .file inside DIR2 without changing to that directory. i mean while i have my current working directory as DIR1 and i find and store all files in DIR2 in a array say @array1