From: Al S. <al...@al...> - 2002-11-29 15:04:08
|
> "Thinking in Cpp" by bruce eckel and either another book for cpp > reference says ios::in | ios::out will append if file exists and that if > not it creates it. Neither statement is correct in Standard C++. That might be how legacy iostreams worked. With Standard C++ iostreams: If the file does not exist, the open fails. If the file exists, it is opened with output defaulting to the beginning of the file. At least that's how MinGW works and it seems to reflect what the Standard says. |