mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-06-16 02:15:48 +00:00
14 lines
176 B
Python
14 lines
176 B
Python
import struct
|
|
import sys
|
|
import os
|
|
|
|
filename = sys.argv[1]
|
|
|
|
size = os.path.getsize(filename)
|
|
|
|
f = open(filename, 'r')
|
|
print(f.read())
|
|
f.close()
|
|
|
|
print(struct.pack("<Q", size))
|