How to get only the last two files within a folder using c#
- by CB
I'm trying to figure out how to get only the last two files within a folder, so that I can merge them together using c#. The files are csv files and I've looked at File.CreationTime, but don't know exactly how to compare on it, so that I'm working only with the last two files.
How can I do this?