Find out when text file last saved

  • Thread starter Thread starter kieran
  • Start date Start date
K

kieran

Hi,

I import data every evening through a scheduled task from a text file.
Once the data is imported, an email is sent to a user saying how much
data etc.. was in the file.

In case the file has not been updated each day, i would like to
include in the email the date and time the file was last updated. Is
there some way to get this using vb.net from a text file i.e. to tell
when the file was last saved.

Thanks for all help.
 
kieran said:
In case the file has not been updated each day, i would like to
include in the email the date and time the file was last updated. Is
there some way to get this using vb.net from a text file i.e. to tell
when the file was last saved.

'System.IO.File.GetLastWriteTime'.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top