C # Gets the file at various times as follows:
Table 2 <ccid_nobr>
| Property |
Functions and Uses |
| Attributes |
Returns the value of the property associated with the file, using the FileAttributes enumeration type value |
| CreationTime |
Returns the creation time of a file |
| Exists |
Checks if the file exists in the given directory |
| Extension |
Returns the file name extension |
| LastAccessTime |
Returns the last access time for a file |
| FullName |
Returns the absolute path of the file |
| LastWriteTime |
Returns the last write operation time of a file |
| Name |
Returns the filename of the given file |
| Delete () |
To delete a file, be sure to use the method carefully |
FileInfo fi = new FileInfo ("E:\\text.txt");
Response.Write ("Creation time:" + fi.) Creationtime.tostring () + "Time to write file" + fi. LastWriteTime + "Time to visit" + fi. LastAccessTime);
C # Read file modification time, access time, creation time