Read the file as string and split it using the Environment.Newline character, that will give you an array. Then based on the condition, you need to update the array item, then you can write back to the text file.
The error is coming because I am trying to write “True” to the Result (column 4 as per your XML)
But if I write the same to a new column then it’s working
Is there something that I need to do get the Boolean value printed to Result
i.e as the column “Result” has already got True printed in some of its Rows that is the reason row(“Result”) is not working and if I am declaring a new column row(“Result1”) its working