Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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')
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Python #program #file #size #plain
ADD COMMENT
Topic
Name
8+2 =