Click here to Skip to main content
15,916,188 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi everyone,

am working on asp.net,C#,SqlServer 2005.

In my Systems D Drive I have a txt file. Just I want to display txt file modified date using label in asp.net c#.

Please help.
Posted

 
Share this answer
 
C#
 DateTime fileCreatedDate = File.GetLastWriteTime(@"C:\Documents and Settings\prasad\Desktop\points.txt");

lblModified.Text = fileCreateDate.ToString();</path>
 
Share this answer
 
v2
Comments
Software Engineer 892 2-Jun-14 3:02am    
Thanks...... its working.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900