How to read tab delimited .txt file line by line (File attached)?
조회 수: 9 (최근 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
참고 항목
카테고리
Help Center 및 File Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!