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

1 view (last 30 days)
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);

Answers (0)

Categories

Find more on Migrate GUIDE Apps in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!