MATLAB

read text file


main.m

f = fopen("log.txt");
while ~feof(f)
  line = fgetl(f);
  fprintf("%s\n", line);
end
fclose(f);


返回上一頁