%**************************************************************************
% CLUSTER project: Store logfiles                  Autor: Christian Maszl *
% Unit System = [SI]                  Mail: e0025754@student.tuwien.ac.at *
%**************************************************************************
%
% This subroutine stores the errorlog and myfilelist to the harddisk.

% Create myfilelist.log and store the package names
    savedata=[logfilepath 'myfilelist.log'];
fid=fopen(savedata,'w');
for i=1:size(myfilelist,1)
    place1=cell2mat(myfilelist(i,1));
    place2=cell2mat(myfilelist(i,2));
    place3=cell2mat(myfilelist(i,3));
    place4=cell2mat(myfilelist(i,4));     
    fprintf(fid,'%s\t%s\t%s\t%s\n',place1,place2,place3,place4);    
end
fclose(fid);
clear place1 place2 place3 place4 fid i;
% Create error.log and store the unvalid package names
    savedata=[logfilepath 'error.log'];
fid2=fopen(savedata,'w');
for i=1:size(errorlog,1)
    place1=cell2mat(errorlog(i,1));
    fprintf(fid2,'%s\r',place1);     
end
fclose(fid2); 
clear place1 place2 place3 place4 fid fid2 i errorlog savedata;
