I am lookind for a effective way that I can replace newlines with an auto-incrementing number.
eg.
this is line 1
this is line 2
this is line 3
this is line 4
to
1. this is line 1
2. this is line 2
3. this is line 3
4. this is line 4
Is looping through each line the only way? I guess thats the way I will implement it for now. Unless I find a better way here :) Just some pseudo code will do. But I am using C#