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 |
How to Snap the Cursor to a Button?
Code for Communicating over Sockets?
How to get the row index on checking a Checkbox in a ListView
Coding for .NET Delegates?
How to integrate the regional language in asp.net and c# like Telugu, Hindi etc,. send a sample program
3 Answers Concept, NIIT, Wipro,
Common UI for Multiple web applications. Suppose there are 35 websites using same third party controls.These 3rd party controls are made together that all 35 websites can use these controls.If we put all 3rd party controls and use its dll in 35 websites,only class files will be accessable. But I want to use CSS,images also in all 35 websites. how I can design the N-tier solution for this project.
Data Reader Vs DataSet
How to Create Scrollable Micro Windows?
how to create a search bar which access data from various websites and retrieves the data
How we implement the paypal in my website and how we make a payment through Credit Card.
what is software testing
Code for Document Validation in XML.NET?