public static void Main()
LoadFromCSVString("170803,053510,001,90610,610,00001,2,F,S,100,8,108,,,,,,,109,P,,,,,17080300161000001.inc,,,");
public static void LoadFromCSVString(string csvStr)
string LocationCode = "";
string IncidentType = "";
string PostedSpeedLimit = "";
string ThresholdSpeedSetting = "";
string DetectedSpeed = "";
string TimeIntoRed1 = "";
string TimeIntoAmber = "";
string TimeIntoRed2 = "";
string SSVCorroborationResult = "";
string QuarantineIncident = "";
string VSVMRecordFN = "";
string IncidentRecordFN = "";
string[] fields = csvStr.Split(',');
Console.WriteLine("Line has " + fields.Length + " fields");
LocationCode = fields[3];
IncidentType = fields[8];
PostedSpeedLimit = fields[9];
ThresholdSpeedSetting = fields[10];
DetectedSpeed = fields[11];
TimeIntoRed1 = fields[13];
TimeIntoAmber = fields[14];
TimeIntoRed2 = fields[15];
SetDistance = fields[17];
SSVCorroborationResult = fields[19];
QuarantineIncident = fields[22];
VSVMRecordFN = fields[23];
IncidentRecordFN = fields[24];
Console.WriteLine("Line processed");
Console.WriteLine("ANPR result processed");