How to get only the last two files within a folder using c#
Posted
by CB
on Stack Overflow
See other posts from Stack Overflow
or by CB
Published on 2010-03-31T16:09:50Z
Indexed on
2010/03/31
16:13 UTC
Read the original article
Hit count: 222
c#
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?
© Stack Overflow or respective owner