file=dir('/home/wang/Desktop/trainset/num0/');
for i=3:length(file)
path= strcat('/home/wang/Desktop/trainset/num0/',file(i).name,'\n');
save('/home/wang/Desktop/trainsetimage_name');
save result.txt -ascii path
fid=fopen('./result6.txt','a');
fprintf(fid,path);
end
% fid=fopen('result5.txt');
% line=fgetl(fid);
% while ischar(line)
% I=imread(line);
% imshow(I);
% line=fgetl(fid);
% u=input('do you want to continue?');
% end
% fclose(fid);