This repository has been archived on 2024-10-24. You can view files and clone it, but cannot push or open issues or pull requests.
NG_2023_Stanislav_Mykhailenko/Lesson_5/Task_1/Classes/FileInfoOperation.cs
Stanislav Mykhailenko fd95e46b80
Update Lesson 5 Task 1
2023-04-09 23:58:13 +03:00

16 lines
391 B
C#

namespace Lesson5.Classes;
using Lesson5.Interfaces;
public class FileInfoOperation : IFileInfoOperation
{
public static void GetFileInfo(string path)
{
var info = new FileInfo(path);
Console.WriteLine($"Name: {info.Name}");
Console.WriteLine($"Creation time: {info.CreationTime}");
Console.WriteLine($"Length: {info.Length}");
}
}