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
- Filter First, Think Later February 21, 2026
- Five Hundred Bugs That Fuzzers Missed February 20, 2026
- Gemini 3.1 Pro and the 0.1 That Matters February 19, 2026