07.11.2010, 00:34
Quote:
XML is better than the files, if yes, why? Is faster, or what? I ask because i do not know XML.
|
XML is a format. And XML files are also files. So you can't say that it is faster than anything.
It depends on the implantation whether something is faster or slower. This implantation should be at least as fast as pawn based INI and XML parsers or even faster. But it COULD be slower than ungeneric, undynamic, specialized file loading and saving code in pawn.
An INI file contains sections, comments and keys containing values:
[player1]
money=100
A XML file contains nested elements:
<root>
<player1>
<money>100</money>
</player1>
</root>
It is up to you which format you think is better to use.