[Bug libstdc++/22130] fstream fails to create a file in ios::in| ios::out mode.

2005-06-21 Thread rohit_goel at ml dot com
--- Additional Comments From rohit_goel at ml dot com 2005-06-21 13:43 --- Is there a way to open the file in "a+" mode using fstream. Meaning, if the file exists, open in append mode, else create the file. Thanks. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22130

[Bug libstdc++/22130] fstream fails to create a file in ios::in| ios::out mode.

2005-06-20 Thread schwab at suse dot de
--- Additional Comments From schwab at suse dot de 2005-06-20 22:45 --- You need to add ios::trunc if you want to create the file, see [lib.filebuf.members] 27.8.1.3#2. -- What|Removed |Added --

[Bug libstdc++/22130] fstream fails to create a file in ios::in| ios::out mode.

2005-06-20 Thread pinskia at gcc dot gnu dot org
-- What|Removed |Added Component|c++ |libstdc++ http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22130