Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- import sys
- filename = sys.argv[1]
- with open(filename, 'rb') as f:
- byte = f.read(4)
- num = int.from_bytes(byte, sys.byteorder)
- print(num)
- byte = f.read(256)
- print(byte.decode('ascii'))
- byte = f.read(4)
- num = int.from_bytes(byte, sys.byteorder, signed=True)
- print(num);
Add Comment
Please, Sign In to add comment