I just decided I'm going to use binary mode everywhere unless I need text mode, just like you do, thanks for great info

It's great the UNIX (and alike) systems ignore the stupid (imo) text mode, and also keep the code portable by ignoring the 'b' mode.

The Windows text mode read/writes are actually a lot like FTP transfers, files are converted to other system's EOF and line ending usages.

Thanks for the info DaWei, you're a quick poster