那位大虾教我读xml?谢了
程序的配置都保存在相同目录下的record.xml中,启动时读取,关闭时保存,怎么做到?
xml文件如下:
...
<setting>
<workpath>D:\</workpath>
<item1>True</item1>
<item2>False</item2>
...
</setting>
<history>
<history1>...</history1>
<history2>...</history2>
...
</history>
...
程序启动时把setting里每一项读到同名变量里,history里的值读到history()数组里