Add new line in .ini file
6 vues (au cours des 30 derniers jours)
I'm trying to set the properties of a class by loading the contents of the initialization file in a class method.
Source for INI class (https://www.mathworks.com/matlabcentral/fileexchange/55766-ini).
test_graph = settings_utils.data.test_graph;
function data = load_data
I = INI('File','input.ini');
data = I.get('UserData'); % struct
example.ini includes the following
test_graph = struct( ...
'test1', false, ...
'test2', false, ...
I would like to know how to add new line in .ini files.
I tried to add `...` which is how I add multiple lines in .m files. But this doesn't work i.e the struct is not read correctly from the .ini file; it is read as a string.