C#C
C#3y ago
6 replies
Thommy

String Append

I have the following code:
blablabla.1 {
  row1.withCode
  row2.withCode
  row3.withCode
  row4.withCode
}

blablabla.2 {
  row1.withCode
  row2.withCode
  row3.withCode
  row4.withCode
}

blablabla.3{
  row1.withCode
  row2.withCode
  row3.withCode
  row4.withCode
}

i read the lines with File.ReadAllLines in an index[i] and search for string "blablabla.2"
this is found on line 100 (example)
Now I would have to add a line after row2.withCode.
Can someone help me with that?
Was this page helpful?