tail command problems

Hi,

In my home directory, there are so many files. i tried to get the lastly created file by following command.

file=`ls -lrt MXOfiles* | tail -1`

As there are so many files, it displays

"$ : 0403-027 The parameter list is too long."

Can someone tell me how can i get the recent file placed in my directory?

You can try:

file=`ls -t MXOfiles* | head -1`