This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: File Stream Open Problem with g++ 3.3.3 and libstdc++.so.5
- From: Paolo Carlini <pcarlini at suse dot de>
- To: Subrata Basak <subrata-basak at mediaring dot com>
- Cc: 'gcc-libstdc++' <libstdc++ at gcc dot gnu dot org>
- Date: Mon, 29 Mar 2004 11:48:38 +0200
- Subject: Re: File Stream Open Problem with g++ 3.3.3 and libstdc++.so.5
- References: <003e01c4156a$dc6f60e0$1f01010a@corp.mediaring.com>
Hi,
according to the ISO standard, now closely tracked, the default
open mode of ifstream is "in", the equivalent of C "r", therefore
_file must exist_: indeed, changing your snippet to use ofstream
leads to the expected behavior.
Paolo.
P.S. gcc-help is much more suited for this kind of doubts.