I have a .txt file , which contains data like follows
----------------Wed Aug 15 09:30:26 2018Wed Aug 15 09:30:26 2018Wed Aug 15 09:30:26 2018Wed Aug 15 09:30:26 2018----------------Wed Aug 15 09:30:28 2018Wed Aug 15 09:30:28 2018Wed Aug 15 09:30:28 2018Wed Aug 15 09:30:28 2018
I want to separate/split this data in following manner:
-------- (break)-------- (break)Wed Aug 15 09:30:26 2018 (break)Wed Aug 15 09:30:26 2018 (break)Wed Aug 15 09:30:26 2018(break)Wed Aug 15 09:30:26 2018(break)--------(break)--------(break)Wed Aug 15 09:30:28 2018(break)Wed Aug 15 09:30:28 2018(break)Wed Aug 15 09:30:28 2018(break)Wed Aug 15 09:30:28 2018(break)
if I call/access that .txt file with fopen and fgets or importdata, all the data get stored in one cell {1×1}.How can i access this one cell to split/separate in shown manner?
P.S: Break means space or starting a new line
Best Answer