I'm not sure as a Random Access File opens file sin binary mode, which is very much required for this. If you open a file in binary mode you will distinguish between 0x00 and 0x01.

Regards,
Chris