[Mingw-w64-public] getc skips "0D" in binary file

2021-11-30 Thread David Webb
Stephen and Mateuz. Many thanks for your quick replies. I changed the mode to 'rb' and the first set of files are now read without error. I've also found that the GNU routine fread() is Posix compliant and ignores the 'b' so the same code works on both machines and I do not need to add any mo

[Mingw-w64-public] getc skips "0D" in binary file

2021-11-30 Thread David Webb
ay to prevent the '0D' characters being dropped? I could of course use the C read routine to read a buffer and generate my own getc macro - but my coding is never optimal so if there is a better solution I would prefer to use it. Thanks, David Webb. ___