Question #38451

Which class of the .NET Framework should Hayley use to enable Sharon to view the file extension of the stock details file? Describe any four properties of the selected class.

Expert's answer

using System.IO;
Console.WriteLine(File.GetAccessControl(@"E:\animals.pdf"));
Console.WriteLine(File.GetAttributes(@"E:\animals.pdf"));
Console.WriteLine(File.GetLastAccessTimeUtc(@"E:\animals.pdf"));
Console.WriteLine(File.GetCreationTimeUtc(@"E:\animals.pdf"));


Answer on Question#38451 – Programming - Other

LATEST TUTORIALS
APPROVED BY CLIENTS