Hi wanna ask, is there any way to edit this code to make it as a timer. Because I want to get last edit csv file and save it to the database, at least loop for about 30 second.
foreach (FileInfo file in filess)
{DateTime lastWriteTime = file.LastWriteTime;
Console.WriteLine("Time last Edit : " + lastWriteTime);
}
thank you
im using visual studio 2019,c#

Jenith ThakkarRank #789 · 2.9K reputationPosted Aug 11, 2020, 7:13 PM EDT
Laxmidhar SahooRank #383 · 6.6K reputationPosted Aug 11, 2020, 7:49 PM EDT
Posted Aug 12, 2020, 9:23 PM EDT
Posted Aug 12, 2020, 9:24 PM EDT
Jenith ThakkarRank #789 · 2.9K reputationPosted Aug 12, 2020, 11:56 PM EDT
It will run in background