Reading content of a file using readtable return NaT for Time
Show older comments
Please find the attached file. I want to use readtable to parse the file using readtable function.
I want Date and message content separatly done.
1 Comment
Life is Wonderful
on 20 Aug 2019
Accepted Answer
More Answers (1)
Andrei Bobrov
on 5 Sep 2019
Edited: Andrei Bobrov
on 5 Sep 2019
T = readtable('eventlog.txt','format',...
'%d %{yyyy-MM-dd HH:mm:SS}D %s %s %s','delimiter','|',...
'ReadVariableNames',false);
1 Comment
Life is Wonderful
on 5 Sep 2019
Edited: Life is Wonderful
on 5 Sep 2019
Categories
Find more on Dates and Time in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!