DevaV
14 years agoContributor
Using INI Files in Stores
Hi,
We have added new ini file to the stores. When it is imported it gets imported with appending _INI at the end of name.In scripts when we have used following ways, it dont returns a value.
We want to use INI files stored in Stores. Please let us know how to use the same.
We have added new ini file to the stores. When it is imported it gets imported with appending _INI at the end of name.In scripts when we have used following ways, it dont returns a value.
//Sample -1
var iniFilePah = Storages.INI.("Test.INI")
Log.Message(iniFilePath.GetSubSection("IDC_STATIC_PROPERTIES").GetOption("English", "Not Exists")); //It prints Not Exists
//Sample -2
var iniFilePah = Storages.INI.("Test_INI.INI")
Log.Message(iniFilePath.GetSubSection("IDC_STATIC_PROPERTIES").GetOption("English", "Not Exists")); //It prints Not Exists
//Sample -3
var iniFilePah = Storages.INI.("Test_INI")
Log.Message(iniFilePath.GetSubSection("IDC_STATIC_PROPERTIES").GetOption("English", "Not Exists")); //It prints Not Exists
//Sample -4 - It access the same file but not stored in stores
var iniFilePah = Storages.INI.("E:\\Test.INI")
Log.Message(iniFilePath.GetSubSection("IDC_STATIC_PROPERTIES").GetOption("English", "Not Exists")); //It prints the required result
We want to use INI files stored in Stores. Please let us know how to use the same.