Code for Getting Information About A File?
here we have the system.io base class in .net
FileInfo is the class which has the properties and methods
to display information about the file.
example code
FileInfo fi = new FileInfo("givepath");
Console.WriteLine("File Name:"+fi.Name);
Console.WriteLine("FullName:"+fi.FullName);
Console.WriteLine("Creation Time:"+fi.CreationTime);
Console.WriteLine("Last Access Time:"+fi.LastAccessTime);
Console.WriteLine("File Deleted :"+fi.Delete());
We can similarly know about the directory information using
DirectoryInfo di = new DirectoryInfo("path");
| Is This Answer Correct ? | 8 Yes | 0 No |
Coding for .NET Delegates?
How to Create Scrollable Micro Windows?
What do you create for easier access of data?
Listview design in .net
How to add checkbox to datagrid?
how the value of label is printed through a button in asp.net web application
How to get the row index on checking a Checkbox in a ListView
i have a gird with columns all are coming from database,this will bind in item templete in gridview as textboxex.and i have button below named Update.i want to update all the records in the grid,but if user change the value of one textbox,what is the easy way 2 do this
Code for Document Validation in XML.NET?
How to use Client-side Script to Focus Controls in ASP.NET?
working with fileUpload ?
Code for Communicating over Sockets?