filenames = []Dir.foreach("Data") do |s| filenames << s if s != "." && s != ".."end
filenames = [] Dir.foreach("Data") do |s| filenames << s if s != "." && s != ".." end