Data Length
February 25, 2019
These few lines of code are useful to calculate the size of a file. Later, we'll combine it with another script.
from sys import argv
script, filename = argv
a1 = open(filename)
data = a1.read()
print "The size of the file is %r bytes." % len (data)
Recent Entries
- Wonder 2 Finally Shows Some Restraint January 25, 2026
- Forty-Five Bugs Hiding in Plain Sight January 23, 2026
- Cleaning the Metadata January 21, 2026