I'm porting a c/c++ applications from windows to linux, and I'm having problems with the open() function. I opened the files as binary in windows, but in linux I cannot do that. The O_BINARY flag does not exist...
When I started checking out why, I found a nice bit of information on the fopen() function that rocked my world...
The mode string can also include the letter ``b'' either as a last character or as a character between the characters in any of the two-character strings described above. This is strictly for compatibility with C89 and has no effect; the ``b'' is ignored on all POSIX conforming systems, including Linux.
I have a quite large application and I'm having some problems because the files are opened as text and the read fails sometimes (other times it dosn't . don't know why )
Any ideas how I can give this problem a twist?
well, thanks for all the help I hope is coming my way