Hello there fellas,
I was wondering if anyone could help me out with a small project of mine. In short, I'm trying to read a multi-line .csv file, and only add specific numbers from each line together. (basically I'm working with a log file) This is how it looks:
Software is adding 1 line every 5 seconds. So basically I'd like to open the file in C#, read all lines & add [22][23][24]'t element (if I counted it right .. red numbers) of each line and have it in the end save result in new file, with system date & time for name. Also, it should be 'resistant' to errors (there's a possibility that a line will contain only letters). It should also clear & save the original file once done.
Now, I know you guys aren't here to solve problems for others, at least not for free. So I'm offering to buy you a beer if you help me out with this. Your help would mean a lot! Thanks!
P.S Yes I did try to patch some code snippets on my own (found online) but those were only partially working, had missing functions, errors and were simply badly written.
I was wondering if anyone could help me out with a small project of mine. In short, I'm trying to read a multi-line .csv file, and only add specific numbers from each line together. (basically I'm working with a log file) This is how it looks:
C#:
9/6/2017 11:48:40 PM,[COLOR=#ff0000]251[/COLOR],233
9/6/2017 11:48:45 PM,[COLOR=#ff0000]213[/COLOR],196
9/6/2017 11:48:50 PM,[COLOR=#ff0000]218[/COLOR],201
9/6/2017 11:48:55 PM,[COLOR=#ff0000]224[/COLOR],206
Software is adding 1 line every 5 seconds. So basically I'd like to open the file in C#, read all lines & add [22][23][24]'t element (if I counted it right .. red numbers) of each line and have it in the end save result in new file, with system date & time for name. Also, it should be 'resistant' to errors (there's a possibility that a line will contain only letters). It should also clear & save the original file once done.
Now, I know you guys aren't here to solve problems for others, at least not for free. So I'm offering to buy you a beer if you help me out with this. Your help would mean a lot! Thanks!
P.S Yes I did try to patch some code snippets on my own (found online) but those were only partially working, had missing functions, errors and were simply badly written.