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.

Keywords:

Written by admin on April 4th, 2012 with no comments.
Read more articles on Programming and Web.

Related articles

No comments

There are still no comments on this article.

Leave your comment...

If you want to leave your comment on this article, simply fill out the next form:




You can use these XHTML tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> .