If it's a binary file and contains a ^Z character, opening the file in text mode causes it to stop reading at the ^Z character. This is expected. What you should do is add O_BINARY to the open flags to force binary handling of the file, regardless of the mount flags. -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple
- problems with read() David Johnson
- Re: problems with read() Christopher Faylor
- Re: problems with read() Earnie Boyd
- DJ Delorie