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>>
test.cpp
,@## # Tabletennis coded at 8 Mbps.
@
4@ rOڒѿ|P,琉f
ӆ(-+fRiyMAiQ*5+<