Process all file

I have several file in the directory. I try to run a encrypt script but one file processed only.

data_files='Ma*.txt'

for file in $data_files

do

    java Encrypt key.txt $data_files

done

How i can process all the file?

data_files='Ma*.txt'

for file in $data_files

do

    java Encrypt key.txt $file

done

You used the wrong variable...?

thanx a lot. It work!