i want to save the result of my List to be save as csv into a variable path with encoding UTF.
But when i loop with foreach over my list:
foreach (String item in finalausgabe)
{
Console.WriteLine(ausgabe.GetType());
}
i get the following result in my Console (just the first five lines for preview)
System.Collections.Generic.List1[System.String]
System.Collections.Generic.List1[System.String]
System.Collections.Generic.List1[System.String]
System.Collections.Generic.List1[System.String]
System.Collections.Generic.List1[System.String]
But my list looks actually like this:
"STATUS" "USERID" "Username" "Vorname" "Nachname" "Zweiter Vorname"
"active" "1" "testm" "test" "M" "" "M" "" "Kuhnkies"
"active" "10" "lext" Sofia Daasch "" "F" "" "Lex"
"active" "102" "reiterr" Anna Dabbagh "" "M" "" "Reiter"
"active" "103" "buchmeiera" Lea Dabbert "" "M" "" "Buchmeier"
"active" "104" "fuchss" Emilia Dabels "" "M" ""
as you can see its already prepared as a tab separated csv, just needs to be saved line by line in csv-file with encoding "utf-8".