r = c = ""
while (c or not r) and (not c == splitter)
c = file.read(1)
I suspect I'm missing something to make this prettier, but
file.read(1) seems to be the way to go through a file bytewise.