In below code I want to get Test1 value in new line of CSV file for each cycle of loop. How could I do this –
for (int j = 0; j < 10000; j++)
{
if (NPVAmount > 0) // Positive amount
{
Positivetemp = NPVAmount + Positivetemp;
Temp = Convert.ToString(Positivetemp)+ ","+ j +","+ UniqueCurrencyHolder+",";
Test1 =Test1 + Temp;
}
}
Use
Environment.NewLine