C# program to get attributes of a specified file

Program

using System;
using System.IO;

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

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

Output

Attributes are :Hidden, Archive

Leave a Comment

error: Alert: Content is protected!!