Filter löschen
Filter löschen

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

1 Ansicht (letzte 30 Tage)
Recap
Recap am 3 Apr. 2016
Bearbeitet: Recap am 3 Apr. 2016
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);

Antworten (0)

Kategorien

Mehr zu Migrate GUIDE Apps finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by