I splitted csv-file by "," but some numbers were written with using of this symbol so some numbers were splitted on some parts. The beginning and the end of the every splitted number are signed by """ so i tried to paste parts of the number focusing on quotation marks...
string[] inputData = File.ReadAllLines("file.csv");
string[,] allData = new string[inputData.GetLength(0) - 1, 8];
for (int i = 1; i < inputData.GetLength(0); i++)
{
string[] arrayHelpStupied = inputData[i].Split(",");
string[] arrayHelpSmart = new string[8];
int m = 0;
int flagMistake = 0;
string compoundingOfSplittedNumber = "";
Console.WriteLine("\u0022");
for (int j = 0; j < arrayHelpStupied.Length; j++)
{
string prov = arrayHelpStupied[j];
if ((prov[0].Equals("\"")) || (flagMistake == 1))
{
flagMistake = 1;
compoundingOfSplittedNumber += arrayHelpStupied[j];
if (arrayHelpStupied[j][^1].Equals("\u0022"))
{
flagMistake = 0;
arrayHelpSmart[m++] = compoundingOfSplittedNumber;
continue;
}
continue;
}
arrayHelpSmart[m++] = arrayHelpStupied[j];
}
but numbers that start with quotation mark is ignored :( please could you explain me the reason of such behaviour and how can i cope this difficulty please