Code: Select all
IXMLWriter *configWriter = device->getFileSystem()->createXMLWriter(device->getFileSystem()->createAndWriteFile("config.xml", false));
I'm using Irrlicht 1.1 with the MinGW compiler
Code: Select all
IXMLWriter *configWriter = device->getFileSystem()->createXMLWriter(device->getFileSystem()->createAndWriteFile("config.xml", false));
Code: Select all
#include <irrlicht.h>
using namespace irr;
using namespace core;
using namespace io;
#pragma comment(lib, "Irrlicht.lib")
int main()
{
IrrlichtDevice *device = createDevice(video::EDT_NULL);
IXMLWriter *configWriter = device->getFileSystem()->createXMLWriter(device->getFileSystem()->createAndWriteFile("/tmp/config.xml", false));
configWriter->drop();
device->drop();
return 0;
}