From: Carlos d. M. <cg...@wo...> - 2002-11-28 19:51:32
|
Ouch! You're right. Sorry for that. > > ios::in|ios:out opens an existing file for read/write. To create a > new file for read/write you need ios::in|ios:out|ios::trunc. This is > according to the C++ specification (I admit also had to look it up > myself ;-)). "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. I made the change, but it still doesn't work, now it opens the files and create them, but still no writes! Thanks, and sorry again for the code. Delete the //comented lines. |