I have some files in CSV format, delimited with pipe.
I need every row of the file to be in one single line, but I have some files like this:
0001|Some text|Some longer text that \r\n has new lines on it|1234
So, this means that the first row is now in two lines.
I'm talking about 5000 rows files that now have around 12000 lines. The Columns I need to replace are always the second and the third ones, the first and the forth are always numbers.
I need to replace the \r\n
in some columns of the file for just a space, thus rows take only one line.
How can I do this in Microsoft C#?