You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
using (FileStream fs = new FileStream(ofd.FileName, FileMode.Open, FileAccess.Read, FileShare.ReadWrite))
using (TextReader tr = new StreamReader(fs, ExEncoding.UTF8))
using (CsvReader csv = new CsvReader(tr))
{
csv.Configuration.HasHeaderRecord = false;
csv.Configuration.Delimiter = ";";
// accept comment in csv files
csv.Configuration.AllowComments = true;
csv.Configuration.Comment = '#';
values = csv.GetRecords<StringKeyValuePair>().ToList();
}
However, I found out that there doesn't seem to be a standard for csv commenting style.
So you might need to consider documenting or tell the user allowed commenting style if you were to add such feature,
Have a nice day and keep up the good work.
The text was updated successfully, but these errors were encountered:
Hi,
this is a simple feature request to let imported csv files have comment mechanism
such as ignoring lines start with #.
It can be done by modifying Cirilla/ViewModels/ImportCsvWindowViewModel.cs
Cirilla/src/Cirilla/ViewModels/ImportCsvWindowViewModel.cs
Lines 70 to 78 in 4817c0a
to
However, I found out that there doesn't seem to be a standard for csv commenting style.
So you might need to consider documenting or tell the user allowed commenting style if you were to add such feature,
Have a nice day and keep up the good work.
The text was updated successfully, but these errors were encountered: