private static void WriteEventsRow(StringBuilder targetText, EventRow row)
 {
     targetText
     .Append(row.DateTime + ",")
     .Append(row.EventType + ",")
     .AppendLine();
 }
        private static void ReadEventsRow(string[] lines, int i, List <EventRow> rows)
        {
            try
            {
                var reader = new Reader();

                var line = lines[i];

                if (!line.StartsWith("Id,"))
                {
                    return;
                }

                var fields = line.Split(',');

                for (var j = RawDataIndex; j < fields.Length; j++)
                {
                    var columnName = reader.GetString(lines, i, j);

                    if (columnName != "Event")
                    {
                        continue;
                    }

                    var field = reader.GetString(lines, i + 1, j);

                    var row = new EventRow();

                    row.DateTime = GetDateTime(field);

                    row.EventType = GetEventType(field);

                    rows.Add(row);
                }
            }
            catch (Exception ex)
            {
                Console.WriteLine("ERROR: Failed to load row {0} due to the following error: /r/n {1}", i, ex.Message);
            }
        }