Files should be opened in binary mode on OS/2.