Skip to content
Snippets Groups Projects
Commit c2585be9 authored by jacques.grelet_ird.fr's avatar jacques.grelet_ird.fr
Browse files

Bug fix: the last line of the .ini file was never read

parent 9b06eaa3
No related branches found
No related tags found
No related merge requests found
......@@ -29,18 +29,12 @@ if (fid_ini ~= -1)
% test the end-of-file
% --------------------
while true
while ~feof(fid_ini)
% read next line
% --------------
inputText = textscan(fid_ini, '%s', 1, 'delimiter', '\n');
% end of file, quit loop
% ----------------------
if feof(fid_ini)
break
end
for ii = {'repIn', 'repOut'}
% get key, use char because i is cell
......@@ -64,8 +58,7 @@ if (fid_ini ~= -1)
fprintf('%s -> %s\n', clef, cfg.(clef));
continue
end
end
end
end % end of while loop
% close .ini file
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment