I have a log file and need to split out the values separated by commas into separate arrays of values for graphing later. The log file is written to once a second
Data is formatted as follows:
Time, Bx, By, Bz, Status
2147483894.995726, 3424, 3424, 3424, 128
2147483895.9957414, 3552, 3552, 3552, 128
2147483896.995726, 3680, 3680, 3680, 128
2147483897.995711, 3808, 3808, 3808, 128
2147483898.9956956, 3936, 3936, 3936, 128
2147483899.9956803, 4064, 4064, 4064, 128
What's the best way of doing this? Regular expressions? I have tried using line.rsplit but can only extract the last column.
Any help appreciated! Thanks