Basically i do have a database import/export file that i needed to edit (file is 1.4m lines). The editing is quite fast even though i have to go through all the lines and check if 2 fields are correct length and if not just fulfill it to the correct length.
The problem i am having is the export into csv file being really ineffective.
I am currently using a Method i created that basically creates a string and then creates a new line with every object from list (as seen in the code below). The problem is that it goes really slowly. I guess it is pretty slow because all the objects that are in the list have 14 parameters that are being put into the string (code is edited so it is not that long). But is there any way to make that faster?
public static string CsvExport(List<DataLine> inputList)
{
string exportString = "";
string delimiter = ";";
foreach (DataLine line in inputList)
{
exportString += line.SCREENINGREQUESTUNIQUEID + delimiter + line.REQUESTTIMESTAMP + "\n";
}
return exportString;
}