From: SourceForge.net <no...@so...> - 2005-08-06 08:47:03
|
Bugs item #1253052, was opened at 2005-08-06 16:47 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=1253052&group_id=2435 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: MinGW Group: Known bugs Status: Open Resolution: None Priority: 5 Submitted By: Tsoi Yat Shing (ystsoi) Assigned to: Earnie Boyd (earnie) Summary: fstream cannot open a file in read/write mode Initial Comment: The following code will output "Failed": #include <fstream> #include <iostream> using namespace std; int main() { fstream in_out("test.dat"); if (!in_out) { cout << "Failed" << endl; } else { cout << "Ok" << endl; } return 0; } OS version: WIndows XP gcc version: 3.4.2 ld version: 2.15.91 20040904 mingw version: MinGW-4.1.0.exe ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=1253052&group_id=2435 |