读取INI文件
mainForm.button.oncommand = function(id,event){//读取inivar strPath;var vSec;var iniFile;var strText;strPath = "G:\aardio_test\ccc2\xx.ini"; //文件路径iniFile = fsys.ini(strPath); //打开文件,文件不存在,则新建一个文件vSec = iniFile.getSection("default"); //对应的节点strText = vSec.path; //节点中的项,获取项对应的值。mainForm.edit1.text = strText;
}
读取INI文件
mainForm.button.oncommand = function(id,event){//读取inivar strPath;var vSec;var iniFile;var strText;strPath = "G:\aardio_test\ccc2\xx.ini"; //文件路径iniFile = fsys.ini(strPath); //打开文件,文件不存在,则新建一个文件vSec = iniFile.getSection("default"); //对应的节点strText = vSec.path; //节点中的项,获取项对应的值。mainForm.edit1.text = strText;
}