To accomplish this task, you can use the following approach:
Here's a sample code that demonstrates this approach in C#:
main.cs1210 chars39 lines
Note: You'll need to implement your own logic to determine the "Situation" value for each line. Also, make sure to provide valid folder and file paths so that the code works as expected.
gistlibby LogSnag