ambiera logo

Ambiera Forum

Discussions, Help and Support.

folder icon Ambiera Forum > irrXML
forum topic indicator XML rewriting whole file
person icon
Monkeycracks
Guest
Quote
2007-05-11 04:27:00

Is there any way to stop IrrXMLWriter from overwriting a whole file and just adding on to the end rather than rewriting it?

So something like this would work and not overwrite the  whole file :

         void writePlayerData(stringc name, stringc password)
         {
          IXMLWriter* r = p->dvc->getFileSystem()->createXMLWriter((stringc("pz/")+name+".apf").c_str());
          r->writeElement(L"usn", false, L"un", stringw(name.c_str()).c_str());
          r->writeElement(L"psw", false, L"pw", stringw(password.c_str()).c_str());
          r->drop();
         }
        
         void writeCharacterData(stringc pName, stringc cName)
         {
          IXMLWriter* r = p->dvc->getFileSystem()->createXMLWriter((stringc("pz/")+pName+".apf").c_str());
          r->writeLineBreak();
          r->writeElement(stringw(cName.c_str()).c_str(), false, L"", L"");
          r->drop();
         }


Note : The code is ugly and incomplete so think nothing of it ;) Just need to know if this is possible with Irrlicht 1.3 or any SVN.

person icon
niko
Moderator
Quote
2007-05-11 09:34:41

Hm, currently not, but it's open source after all, should be easy to add :)


Create reply:










 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


icon_holyicon_cryicon_devilicon_lookicon_grinicon_kissicon_monkeyicon_hmpf
icon_sadicon_happyicon_smileicon_uhicon_blink   






Copyright© Ambiera e.U. all rights reserved.
Contact | Imprint | Products | Privacy Policy | Terms and Conditions |