PYTHON   16

argfile

Guest on 23rd August 2022 10:59:35 AM

  1. import sys
  2.  
  3. name = sys.argv[1]
  4. handle = open(name, 'r')
  5. text = handle.read()
  6. print(name, 'is', len(text), 'bytes')

Raw Paste


Login or Register to edit or fork this paste. It's free.