From: Ricardo Markiewicz Date: Tue, 13 Sep 2005 17:47:32 +0000 (+0000) Subject: Fix al modo de apertura de archivo X-Git-Tag: 1_0-pre1~136 X-Git-Url: https://git.llucax.com/z.facultad/75.52/treemulator.git/commitdiff_plain/265f02295fbe804ba40153117fdc7374590810d8?hp=b68e2575b18e9ca726c7fc076d3565e5f778c173 Fix al modo de apertura de archivo --- diff --git a/src/btree.cpp b/src/btree.cpp index 5df88a2..8f18c66 100644 --- a/src/btree.cpp +++ b/src/btree.cpp @@ -6,7 +6,7 @@ BTree::BTree (const std::string &name, unsigned int block_size, bool create_new_ uchar *node; BTreeNodeHeader nh; - fp = fopen (name.c_str(), "wb"); + fp = fopen (name.c_str(), "wb+"); if (!fp) { /* TODO : mandar una exception ? */ return;