I'm a beginner in programming, and I'm doing a project that requires continously getting an input from the Serial Port. I already used the SerialPort class to retrieve the data and use it in my programm, and now I want to write those same SerialPort values (splitted into array....array) into .CSV
Please, I need help
I would rather suggest you to use generic list<T>. But if you insist uisng string array, you can do it in this way too:
string array = new string;
//reading port and fill the array!
//then you can do:
string delimiter = ";";
//and write to a file:
string path = @"C\MyFolder\myFile.csv";
System.IO.File.WriteAllText(path, Stirng.Join(delimiter, array));
Thanks, what am actually working on collects inputs from the serial port, and I had to split the values to different arrays. So now, I am able to receive array, array...
What I now need to do is to save the values of these arrays to a CSV.