Looping Over Characters with read
f = open("fileName") char = f.read(1) while char: process(char) char = f.read(1) f.close()