string filePath = @"C:\Users\User\Desktop\new.txt";
FileInfo fileInfo = new FileInfo(filePath);
Console.WriteLine(fileInfo.Length);
string filePath = @"C:\Users\User\Desktop\new.txt";
using(FileStream fs = new FileStream(filePath, FileMode.Open))
{
byte[] fileBytes = System.Text.Encoding.UTF8.GetBytes(filePath);
Console.WriteLine($"Вес массива байтов {fileBytes.Length}");
}