"Claus Hentschel" <[EMAIL PROTECTED]> writes: | > | > Of course it could be done easier with | > | > ifstream ifs(tmp.c_str(), ios::in | ios::text); | > | > Maybe we should include that instead ;-) And we can rewrite all calls | to | > | > open a file for both reading and writing. | > | | > | Does that work? | | No, not with gcc, because gcc is conform with ANSI. | | > ios::text? No. It is a non-standard flag. | > ... | > ios::binary otoh is a standard flag and should work everywhere. | | So there seems not to be another way then removong those trailing \r's the | way I'v done. We do need that in all cases where text read from a (binary) | opened file is presented as-is in a window.
Then we should not open those files in binary mode. -- Lgb