S
Steven Blair
Hi,
I have a trace log file for a system I am writing. If the creation date
is older than 14 days, I have to rename that file (File.Move). The next
time a trace message is required a new file is created
StreamWriter sw = new StreamWriter(path,true);
The problem is, the creation date of this new file has the creation date
of the previous log file :S and not the present date.
I used a freeware app to change the creation date of the original file.
The new file definately does not exists before creation (File.Exist is
used)
Any help / comments on this would be appreciated.
Regards,
Steven
*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
I have a trace log file for a system I am writing. If the creation date
is older than 14 days, I have to rename that file (File.Move). The next
time a trace message is required a new file is created
StreamWriter sw = new StreamWriter(path,true);
The problem is, the creation date of this new file has the creation date
of the previous log file :S and not the present date.
I used a freeware app to change the creation date of the original file.
The new file definately does not exists before creation (File.Exist is
used)
Any help / comments on this would be appreciated.
Regards,
Steven
*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!