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 :: c# int positive only 
Csharp :: How to get the world position of the edge of an object? 
Csharp :: c# convert string to enum value 
Csharp :: c# convert string to enum 
Csharp :: text split 
Csharp :: c# get pixel color from image 
Csharp :: stack to string c# 
Csharp :: unity up arrow input 
Csharp :: c# connect to mongodb 
Csharp :: c# datagridview change column name 
Csharp :: take screenshot in c# 
Csharp :: unity json save array 
Csharp :: boostrap 4 modal 
Csharp :: how to convert from hexadecimal to binary in c# 
Csharp :: c# float to string with 2 decimals 
Csharp :: c# convert string to int 
Csharp :: how to change loaded scene in unity 
Csharp :: c# file dialog to get folder path 
Csharp :: c# send email 
Csharp :: how to make a specific scene load only on game start in unity 
Csharp :: c sharp stream to byte array 
Csharp :: all month in array 
Csharp :: c# 
Csharp :: covert char[] to string C# 
Csharp :: print content of array c# 
Csharp :: get current playing animation of animator unity 
Csharp :: c# file directory selection 
Csharp :: if button is pressed unity 
Csharp :: write line to file c# 
Csharp :: google sheet script change text color 
ADD CONTENT
Topic
Content
Source link
Name
6+8 =