DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
4+7 =
Submit