File was Created at : 9/30/2013 12:15:44 PM
Users Online
· Guests Online: 121
· Members Online: 0
· Total Members: 188
· Newest Member: meenachowdary055
· Members Online: 0
· Total Members: 188
· Newest Member: meenachowdary055
Forum Threads
Newest Threads
No Threads created
Hottest Threads
No Threads created
Latest Articles
Articles Hierarchy
C# Program to Get File Time using File Class
C# Program to Get File Time using File Class
This C# Program Gets File Time using File Class. Here the File creation time is found using the date time class.
Here is source code of the C# Program to Get File Time using File Class. The C# program is successfully compiled and executed with Microsoft Visual Studio. The program output is also shown below.
-
/*
-
* C# Program to Get File Time using File Class
-
*/
-
using System;
-
using System.IO;
-
-
class Program
-
{
-
static void Main()
-
{
-
FileInfo info = new FileInfo("C:\\srip.txt");
-
DateTime time = info.CreationTime;
-
Console.WriteLine("File was Created at : ");
-
Console.Write(time);
-
Console.Read();
-
}
-
}
Here is the output of the C# Program:
Comments
No Comments have been Posted.
Post Comment
Please Login to Post a Comment.