Skip to content
6 changes: 5 additions & 1 deletion Utils/Shared/Logger.m
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@
% Check if log file for this application already exists - if it does close any open handles and delete it
% so you can start fresh
if exist(self.filename, 'file') == 2
fds = fopen('all');
if isMATLABReleaseOlderThan("R2025a")
fds = fopen('all');
else
fds = openedFiles;
end
for ii = 1:length(fds)
filename = fopen(fds(ii));
if pathscompare(filename, self.filename)
Expand Down