in reply to reading files in binary mode

And of course, you should always check the success of a file operation. If I had a nickel for every time that saved me, I'd, er, have a lot of nickels. :)

Update: Ah, I see that [id://Hue-Bond] checks for the success of open in his example.


No good deed goes unpunished. -- (attributed to) Oscar Wilde