Read File Information in C# Application

If any customer demands to display the information of the file when was the file Read last time, when was the file write last time, the size of the file and so on.

1. Import "Using System.IO"
 
 
 
2. Make object of class "FileInfo" and in its constructor provide the address of a file. Place "@" sign before the string start.
 
 
 
3. Now with its object you can call all its method to display information about a file. This file could be your text file or image file and can be any file.
 
 
4. Output.