This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/12412] <fstream>: file opened but no data are written
- From: "kouptsov at wsu dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Sep 2003 00:44:59 -0000
- Subject: [Bug libstdc++/12412] <fstream>: file opened but no data are written
- References: <20030925210128.12412.kouptsov@wsu.edu>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12412
------- Additional Comments From kouptsov at wsu dot edu 2003-09-26 00:44 -------
Adding os.clear() before os.open() worked. But there is no "reopening" the stream.
It is opened only when t==2, i.e. only once.
Does close() for unopened stream "spoils" it?