Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
check_offset.py
import sys
argvs = sys.argv
tgt=argvs[1]
char=argvs[2]
f=open(tgt,'r')
try:
data=f.read()
print data.index(char)
finally:
f.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.