For practice, I'm making a hex reader. In this scenario, I read a text file and convert the text to hex. Simple enough. However at the end of it is the value 0xa. Is this basically an EOF marker? I've tried the same with just a string and it doesn't appear.
f = file('test', 'r') content = f.read() for x in content: test = bytearray(content) for i in test: print hex(i)
test file content: