How to get File Attributes?

 Posted by vishalneeraj-24503 on 11/12/2014 | Category: Visual Studio Interview questions | Views: 2063 | Points: 40

We can use System.IO.File class GetAttributes static method to get the file attributes.

For Example:-
FileAttributes fa = System.IO.File.GetAttributes("file_name_path");

It has enum values like Hidden,Readonly and so on.

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response