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

change eof detection

parent 710273f6
No related branches found
No related tags found
No related merge requests found
......@@ -29,12 +29,18 @@ if (fid_ini ~= -1)
% test the end-of-file
% --------------------
while ~feof(fid_ini)
while true
% 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
......
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