How to get the last n files in a directory : <p>I need help with getting the last 3 files in a directory.
I have an application that creates files in it and they have dates in the file names displayed as MMDD eg 0301.
There are a few files that have differents names but all have the dates on them and I'm new to C programming and don't know how to display only the last 3 file names. 
If someone could help me it would be really appreciated.
Thank you</p>
