lol its in c
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
235 B

  1. import sys
  2. c = 0
  3. with open(sys.argv[1], "rb") as f:
  4. while True:
  5. b = f.read(1)
  6. if len(b) == 0:
  7. break
  8. ws = " " if c < 31 else "\n"
  9. c = (c + 1) % 32
  10. print(f"{b[0]:02}{ws}", end="")