필터 지우기
필터 지우기

How do i print out text to listbox in a GUI exactly as it is (with tabs)?

조회 수: 1 (최근 30일)
Recap
Recap 2016년 4월 3일
편집: Recap 2016년 4월 3일
Im inserting text from a file into my listbox and it ignores the tabs that are between the strings. How can i make it so that it doesnt ignore the tabs and prints it as it is?
My text file:
05-WD-3052 19:56:07 03-Apr-2016
06-C-874414 19:57:03 03-Apr-2016
10-G-11 19:58:03 03-Apr-2016
What it comes out as in the listbox
my code:
fileID = fopen('Output/LicenseLog.txt','rt');
tScan = textscan(fileID, '%s','Delimiter','');
newScan = tScan{:};
set(handles.listbox1,'String',newScan);
fclose(fileID);

답변 (0개)

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by