C# program to get attributes of a specified file

We are writing every article every day. C# program to get attributes of a specified file Let’s see clearly about this article today.

C# program to get attributes of a specified file

C# program to get attributes of a specified file

using System;
using System.IO;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main()
        {
            FileAttributes F = File.GetAttributes("B123.TXT");

            Console.WriteLine("Attributes are :"+F.ToString());
       
        }
    }
}
Attributes are :Hidden, Archive

Final Words

C# program to get attributes of a specified file We hope you find this article useful. Let us know if you have any doubts.

Hi, I'm Selva a full-time Blogger, YouTuber, Affiliate Marketer, & founder of Coding Deekshi. Here, I post about programming to help developers.

Share on:

Leave a Comment