VB.NET: How to determine if a file has been changed/updated
Been eager to know about this and found out this could possibly identify if file has changed since last reading date using System.IO namespace, by checking the file’s GetLastWriteTime and GetCreationTime. If either of these two is more recent that the last reading date, that could eventually means the file has been updates/modified. It’s worth taking note that CreationTime is not always less than LastWriteTime. If a file is overwritten, the new file retains the LastWriteTime of the source but the CreationTime will be the time where replacement took place.
- how to know if a file has changed vb net