Is there a simple way to retrieve the date a text file was created ?
I'm using the following code to read the contents of the file, but need to know the date it was created.
many thanks
I'm using the following code to read the contents of the file, but need to know the date it was created.
many thanks
Code:
Set fso = CreateObject("Scripting.FileSystemObject")
Set fil = fso.GetFile(fName) 'the file we want to open
Set txt = fil.OpenAsTextStream(1) 'open file for reading as text
strtxt = txt.ReadAll 'read entire contents into strtxt variable
txt.Close 'close the file