function retval = LoadCableResults (directory, CableDObjectName)

if(directory(end) ~= '/')
directory = [directory '/'];
end

if(CableDObjectName(end) ~= '/')
CableDObjectName = [CableDObjectName '/'];
end



filenames = {...  
          'curvature',...
          'VonMises',...
          'extMassAngle',...
          'extMassForces',...
          'extMassTension',...
          'extmass',...
          'lengths',...
          'lengthsStretched',...
          'reactionLoads',...
          'results',...
          'tensions'};
      
%      'submergenceProbe',...
          
opts = delimitedTextImportOptions;
opts.Delimiter = ' ';
opts.CommentStyle = '#';
opts.TrailingDelimitersRule = 'ignore'; 
          
for i = 1:length(filenames)
          cmd = ['retval.' filenames{i} ' = str2double(table2array(readtable(''' directory CableDObjectName filenames{i} '.dat'',opts)))']
          disp(['loading ' filenames{i} '.dat']);
          eval(cmd);
end          


end