2
I’m creating an export from SQL for the TXT.
With this I add the ";" tab after building each column.
But at the end of the last column you are adding ";" as well.
How do I get this ";" from the end of the last column of all rows?
Man foreach construction of rows and columns:
foreach (DataRow row in dt.Rows)
{
    foreach (DataColumn column in dt.Columns)
    {
        txt += row[column.ColumnName].ToString() + ";";
        int tamanho_linha = txt.Length;
        txt = Convert.ToString(tamanho_linha - 1);
     }
    txt += "\r\n";
}
						
Thanks @bigown, it worked.
– AndreeH