I'm trying to get started on some basic processing of data in array form. Basically this is a segment of what the data file looks like:
20070314180137 1003 1 641 1
20070314180137 1003 3 598 9
20070314180137 1003 4 2466 12
20070314180137 1003 101 610 32
20070314180137 1003 102 410 41
20070312141422 1003 -32767 0 9999
20070312163759 1003 1 426 2
20070312163759 1003 101 352 69
20070312163759 1003 102 189 74
20070312163759 1003 103 273 50
20070312163759 1003 104 351 87
What I want it to do is process all the lines of data except the ones with the lines with the 9999 in it. Then I want it to organize it to put the date/time in a more readable format and organize it like this so that all the variables from the same date are on the same line:
1003 3/14/2007 18:01:37 1 641 1 3 598 9 101 610 32 102 410 41
1003 3/12/2007 16:37:59 1 426 2 101 352 69 102 189 74 103 273 50 104 351 87
etc..
Any help on getting me started with this would be greatly appreciated.
Thanks,
Lauren
20070314180137 1003 1 641 1
20070314180137 1003 3 598 9
20070314180137 1003 4 2466 12
20070314180137 1003 101 610 32
20070314180137 1003 102 410 41
20070312141422 1003 -32767 0 9999
20070312163759 1003 1 426 2
20070312163759 1003 101 352 69
20070312163759 1003 102 189 74
20070312163759 1003 103 273 50
20070312163759 1003 104 351 87
What I want it to do is process all the lines of data except the ones with the lines with the 9999 in it. Then I want it to organize it to put the date/time in a more readable format and organize it like this so that all the variables from the same date are on the same line:
1003 3/14/2007 18:01:37 1 641 1 3 598 9 101 610 32 102 410 41
1003 3/12/2007 16:37:59 1 426 2 101 352 69 102 189 74 103 273 50 104 351 87
etc..
Any help on getting me started with this would be greatly appreciated.
Thanks,
Lauren