You can download this code by clicking the button below.
This code is now available for download.
Get the byte size of a specified file.
Technology Stack : os
Code Type : Function
Code Difficulty : Beginner
def get_file_size(filename):
import os
return os.path.getsize(filename)