add last lineline in all the .txt files

Hi Friends,

I want to add "AAAAAAAAAAAAAAAAAAAAAAAAAA" in the last line of each .txt files in a particular directry. How to do this ?

Thanks In advsnce

append.ksh

for FILE in *.txt
do
echo $FILE
echo "AAAAAAAAAAAAAAAAAAAAAAAAAA" >> $FILE
done

The above file when executed will append to all the *.txt files.