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.

Section: XML

Categories: Server methods | XML