I have a text file that i need to read in that has different number of columns of hex data depending on the row. I am trying to read it all in and then manipulate the hex, but I can seem to find a good way to read the file in. I want to read in the first five columns before the hex (those will always be there) as strings, and then eventually manipulate the hex into decimal and plot. The number of hex words in each row is different though. I'm trying to use text scan but can figure out how to this. Any help would be greatly appreciated.
Here is some sample data:
x 0:47950 0x---- 001:00:07:56.63 16-R-08-04 0x8000 0x0012 0x0000
x 0:136994 0x---- 001:00:13:14.35 16-R-07-04 0x8000 0x0012 0x0000 0x0000
x 0:532637 0x---- 001:00:40:29.86 15-R-08-04 0x8000 0x0012 0x0000 0x0000 0x0000 0x0000
x 0:532637 0x---- 001:00:40:29.86 16-R-04-04 0x8000 0x0012 0x0000 0x0000 0x0000
x 0:47950 0x---- 001:00:07:56.63 16-R-08-04 0x8000 0x0012 0x0000