File time
In this chapter you will learn:
File: GetCreationTime and GetLastAccessTime
using System;/*j a v a2 s.co m*/
using System.IO;
class MainClass
{
public static void Main()
{
string s = "data.txt";
Console.WriteLine(" Created at " + File.GetCreationTime(s));
Console.WriteLine(" Accessed at " + File.GetLastAccessTime(s));
}
}
Next chapter...
What you will learn in the next chapter:
Home » C# Tutorial » File, Path