With this code, I want to write a title:
const string Header = "Name;Date"; using (var writer = new StreamWriter(path)) { var csvWriter = new CsvWriter(writer); csvWriter.Configuration.Delimiter = ";"; csvWriter.WriteField(Header); csvWriter.NextRecord(); ...
Open the file after it:
"Name;Date"
What I want:
Name;Date
CSV , , . , CSV ( ), . 12 Some Street, Amazing Town, " " - , 12 Some Street, next - Amazing Town. , , , ( , ), , , .
12 Some Street, Amazing Town
12 Some Street
Amazing Town
;, ; - , . , , Name, Date. :
;
Name
Date
csvWriter.WriteField("Name"); csvWriter.WriteField("Date"); csvWriter.NextRecord();
Source: https://habr.com/ru/post/1652439/More articles:Блокировать расширенный интерфейс - javaKivy support for SDL2 in Virtualenv - python-3.xC ++ character analysis: how to determine which static initialization is performed? - c ++The capital letter of each word in a Python column - pythonYii2 parsing action name from referent URL - yii2How to replace an entire column without losing formatting in awk - replaceIon link does not work with Ionic v2 - ionic-frameworkHow to make tab header alignment on the left in TabLayout in Android - androidKeras LSTM language model using attachments - neural-networkInsert subset columns - rAll Articles