Answers for "python get bytesize of file"

0

Python program to get the file size of a plain file.

import os
filepath='file1.txt'
size=os.path.getsize(filepath)
print(str(size) + ' Bytes')
Posted by: Guest on December-01-2020

Python Answers by Framework

Browse Popular Code Answers by Language