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
- Unarchived Memories December 17, 2025
- Fixing CloudFront HTTP/2 Configuration December 15, 2025
- Packets to a Silent Modem December 14, 2025