Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

c# get file size in bytes

long _fileSize = new System.IO.FileInfo(filePath).Length;
Comment

C# get size of file

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

PREVIOUS NEXT
Code Example
Csharp :: unity exit application 
Csharp :: c# store strings in file 
Csharp :: Getting data from selected datagridview row and which event 
Csharp :: Uncaught TypeError: $(...).validate is not a function 
Csharp :: unity 2d raycast mouse 
Csharp :: how to disable and enable rigidbody unity 
Csharp :: orderby c# randomize 
Csharp :: c# new line in messagebox 
Csharp :: Change fog setting Unity 
Csharp :: c# get full URL of page 
Csharp :: c# get all inherited classes of a class 
Csharp :: set player position unity 
Csharp :: how to convert string to bool c# 
Csharp :: json stringify c# 
Csharp :: c# int to bool 
Csharp :: Csharp convert string to double 
Csharp :: easily start admin process from service c# 
Csharp :: manchester united 
Csharp :: how o remove .meta files visual studio code 
Csharp :: c# date formats custom 
Csharp :: c# list all files in a directory and subdirectory 
Csharp :: c# unity camera follow player horizontal axis 
Csharp :: c# kill all processes by name 
Csharp :: c# change colour of console 
Csharp :: loadscene unity 
Csharp :: how to convert a bitmap to a base64 string c# xamarin universal 
Csharp :: set active for a seconds 
Csharp :: load prefab in script unity 
Csharp :: c# open file in default program 
Csharp :: oncollisionenter 
ADD CONTENT
Topic
Content
Source link
Name
9+2 =