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.
|
- import struct
- import mmap
-
- f = open("test.dat", "rb+")
- mm = mmap.mmap(f.fileno(),3)
-
- print len(mm)
- print "first 3 bytes: " + mm[0:3];
|