How to read tab delimited .txt file line by line (File attached)?
4 次查看(过去 30 天)
显示 更早的评论
Hello guys,
I want to read a txt file which has data line by line.
Please find the attached file (Data.txt).
Thanks
0 个评论
回答(1 个)
KSSV
2021-10-6
fid = fopen('Data.txt');
tline = fgetl(fid);
while ischar(tline)
disp(tline)
tline = fgetl(fid);
end
fclose(fid);
3 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!