1. fgetl(fp) returns the next line of the specified file,removing the newline characters . 如果 return value contains only the end-of-file marker ,the value is -1
fid = fopen(logName, 'r');
fid_accuracy = fopen('output_accuracy.txt', 'w');
fid_loss = fopen('output_loss.txt', 'w');
tline = fgetl(fid);
整行读取文件。
2.disp(tline) 显示内容