www.delorie.com/djgpp/bugs/show.cgi | search |
I opened a file using the following statements: fstream ff; ff.open("hallo.hoi" | ios::binary | ios::in | ios::out); but the file data was erased after I opened it this way. It shouldn't be erased, because if you want to have it erased then you also have to give the option ios::trunc in the open mode. Under Borland C++ it does work properly: the file is just opened for random access without being erased. What can I do about this? Johan Bosman
I met the same problem with class fpstream (part of TurboVision port used in RHIDE) with C++ library from lgp272b.zip. Installing gcc 2.8.0 and lgpp280b.zip fixes the problem (Note name of libstdcx.a is now changed it is libstdcxx.a for 2.8.0, remove old one to avoid linking it accidentally)
webmaster | delorie software privacy |
Copyright © 2010 by DJ Delorie | Updated Jul 2010 |