The modes for opening files can be ORed together. That means that my_file.open(IO_WriteOnly | IO_ReadOnly); will open the file and you will be able to read the contents. When you write to that file the old contents are deleted and the data you write to that file replace them. If you want to keep your old data you should use IO_Append. Above all you should take a look hereOriginally Posted by Mariane
Bookmarks