473,387 Members | 3,684 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Find out when text file last saved

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.
Nov 21 '05 #1
4 2423
"kieran" <ki********@hotmail.com> schrieb:
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'.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 21 '05 #2
"kieran" <ki********@hotmail.com> schrieb:
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'.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 21 '05 #3
Aye, there is:

File.GetLastWriteTime(strTheFilePath)

"kieran" <ki********@hotmail.com> wrote in message
news:b3**************************@posting.google.c om...
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.

Nov 21 '05 #4
Aye, there is:

File.GetLastWriteTime(strTheFilePath)

"kieran" <ki********@hotmail.com> wrote in message
news:b3**************************@posting.google.c om...
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.

Nov 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Chris | last post by:
hi, to convert excel files via csv to xml or whatever I frequently use the csv module which is really nice for quick scripts. problem are of course non ascii characters like german umlauts, EURO...
4
by: Christian Blackburn | last post by:
Hi Gang, I've created a text-based file format. Once I've generated the text to save the file is as it should be in the debug window. However once I write it to a file a " is added to the...
0
by: kieran | last post by:
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...
12
by: Don Juan | last post by:
I have a simple html document I have been using for some time on my (i.e.) abc.com domain that uses cookies. I recently purchased a new domain name and set up a service to redirect my new domain...
3
by: Luke | last post by:
I'm pretty stuck at the moment and wondering if anyone can spot the problem. Trying to create a function that will read a text file into a list and return that list. I wrote the following...
5
by: bimeldip | last post by:
Hi, I an tryin to create a html page where users can choose a file and open it however, i keep getting it wrong.So far this is wat i've worked on: (open.html) <html> <head> <title>Opening...
3
by: Alami | last post by:
I'm newdie in c programming. this is my first project in programming. I have to write a program for a airline reservation. this is what i have done yet. but when it runs it shows the number of...
6
by: kimiraikkonen | last post by:
Hi, I can read from a text file and insert text file's contents into a listbox whose format is line by line using this code: Dim reader As String reader = My.Computer.FileSystem.ReadAllText("c:...
2
by: totalnewbie | last post by:
Hi all, Here's the situation. We are sending out a survey and tracking who we send it to. The automated system that sends the survey generates a text file called "surveydd mmm yyyy.txt" every...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.