This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def getstr(f): | |
ret = "";char = f.read(1) | |
while char != "\x00": | |
ret += char | |
char = f.read(1) | |
return ret | |
def getustr(f): | |
ret = "";char = f.read(2) | |
while char != "\x00\x00": |