I need a line of code,perhaps,that can read .txt file stored in my pc to arduino.
(Details)
This arduino will use this .txt file to send it to another arduino acting as reciever.
I need a line of code,perhaps,that can read .txt file stored in my pc to arduino.
(Details)
This arduino will use this .txt file to send it to another arduino acting as reciever.
I need a line of code,perhaps,that can read .txt file stored in my pc to arduino.
That code won't execute on the Arduino. What language is the application on the PC going to be written in? THAT has a huge impact on "a line of code to read a file".
You need a program on your PC to read the text file and send the text to the Arduino.
This Python - Arduino demo may help get you started.
...R
Decent terminal programs have options to transfer files.
Depending on transfer speed between your transmitter and receiver, you might have to implement xon/xoff protocol on the Arduino that receives the data from the PC and enable that protocol in the terminal program as well.
PaulS:
That code won't execute on the Arduino. What language is the application on the PC going to be written in? THAT has a huge impact on "a line of code to read a file".
Actually I have converted an image to hexadecimal in matlab and now through arduino I want to transfer the txt file obtained for the image converted.Now somehow i want to send this txt file to another arduino which will recieve it and matlab on reciever side would convert it to image again
Now somehow i want to send this txt file to another arduino which will recieve it and matlab on reciever side would convert it to image again
Well, matlab knows how to write to, and read from, a serial port, so you really have nothing more to do, other than calling the appropriate methods to do that.