in reply to Converting logs to CSV format (desperate help)

Well, your input data doesn't seem to match your desired output data very well. Are the date, time, and feature name missing from the output intentionally, or were they omitted from the result file by accident?

Are you allowed to write your program in C? Crunch time isn't where you should be learning a new language, and I think with your experience you should be able to punch this out in C++ overnight.