File streams in C++

Schultz, Jacob Jacob.Schultz@barconet.com
Fri Apr 20 01:06:00 GMT 2001


I've experianced strange problems with C++ streams when running under
Cygwin. I'm not sure whether this error relates to Cygwin or to GCC but
perhaps someone else can find out.
What happens is that the input file in not read to the end. The attached
program illustrates this (test data also included).

$ ./test
File ended after 311 bytes
File ended after 1001 bytes

The last resut if obviously the correct result.

Jacob Schultz

 <<test.cpp>>  <<test.txt>> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.cpp
Type: text/x-c
Size: 725 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20010420/e5346e9e/attachment.bin>


More information about the Cygwin mailing list