File Attributes code samples in C#

In this article, learn how to read various file attributes from any directory or file using C# with code samples.


File Attributes code samples in C#

In C#, the enum FileAttributes provides the attributes for files and directories. The FileAttribute enum is defined in System.IO namespace of System.Runtime.dll assembly.

Function to check whether path is FILE or DIRECTORY:

Function to check whether the FILE or DIRECTORY is hidden or not:

Function to check whether the FILE or DIRECTORY is hidden or not.



– Article ends here –

Recommended:   Sybase Database Connection String in C#
Share this:

Kiran is a Software engineer by profession and Enthusiastic blogger, love to write articles on computer technology and programming. Reach him at kiran.troubleshootyourself@gmail.com.

We will be happy to hear your thoughts

Leave a reply

Troubleshootyourself
Logo
Shopping cart