How can I save each character of a .txt file into an array in Visual Studio? (c#)

Hi I want to save each character of a .txt file into an array and then send it to arduino serial monitor. I'm looking how to do it but it's not clear to me yet.

let me see if I get that right:

you have a file on your PC, you want to write a C# program that will read the file and send every byte to your Arduino which is connected by USB on that PC. (the Serial Monitor has nothing to do with that then)

Is that your question?

(feels it's unrelated to Arduino, it's just about "how do you dump the content of a file on a Serial port in C#")

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.