Scripting/Server/Classes/XML/LoadFile
Reads/writes the file.
Syntax
doc.LoadFile()doc.SaveFile()Returns
bool
Example
function onPlayerCommand( player, cmd, params )
{
if ( cmd == "loadfile" )
{
// doc is a doc handle (see XML)
local result = doc.LoadFile();
MessagePlayer( "doc.LoadFile returned: " + result, player );
}
}This sample was generated from the signature – adapt the values to your gamemode.
Related pages
- XmlDocument
- doc.FirstChild
- doc.LinkChild
- doc.Clear
- XmlElement
- el.FirstChild
- el.LinkChild
- el.RemoveChild
- el.GetAttribute
- el.Clear
Section: XML
Categories: Server methods | XML