+1
Under review

Open config file

EASTim 5 jaar geleden bijgewerkt 5 jaar geleden 2

Hi all,

Is it possible to open a self made config file and read the content to configure the layout.

I would like to create a JSON (I found that it's possible to work with JSON) with all room info (names, light load names, ...) And process this to the layout. If possible also configure list lengths.

I could not find this on the forum or documentation.

Thanks in advance.



+1
Under review

Hello.

A maximum of only 262144 bytes can be read. The readable file must be in UTF-8 without BOM. Example for Windows:

var path = "C:\\tmp\\test.txt";

var file = IR.OpenFile(path, "r"); // "r" = read

IR.Log(file);

var result = IR.ReadFile(file);

IR.Log(result);

IR.CloseFile(file);

Thanks for the quick reply. Something to test when I've got the time.