Azzera filtri
Azzera filtri

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

1 visualizzazione (ultimi 30 giorni)
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);

Risposte (0)

Categorie

Scopri di più su Migrate GUIDE Apps in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by