How can I write in specific fields of a csv?

To read out of the csv i use the NuGet tool csvHelper.

To pick the time I use DataTime

Now I need a function with which I can use the csvHelper to write times to the corresponding csv fields.

Here is the reading part:

// Read CSV-Data
var sdCardPath = Android.OS.Environment.ExternalStorageDirectory.Path;
var csvFilePath = Path.Combine(sdCardPath, "/sdcard/t.csv");
var builder = new StringBuilder();

using (var FileStream = File.OpenRead(csvFilePath))
using (var memoryStream = new MemoryStream())
{
    FileStream.CopyTo(memoryStream);
    var Table = DataTable.New.ReadLazy(memoryStream, new[]{ "1","2","3","4","5"});
    foreach (var row in dataT.RowsAs<DaM>().Skip(1))
    {
        //Store each Line into public Data-List
        varModule.eis.Add(row);
    }
Sign In or Register to comment.