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
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.
___