📜  C# 获取文件大小 - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:49.991000             🧑  作者: Mango

代码示例2
// Get the information about a file
FileInfo fi = new FileInfo(file);
// Print the file size to console
Console.WriteLine($"File size: {fi.Length} bytes");