I am new in C++ and I have a new project.
I have a text file with numbers that are coordinates x,y
The text files´s format looks like this:
X Y
234 678
343 356
193 235
and so on
Steps,
1.- Put all this file in a buffer memory (unsigned char inbuffer [2000],
2.- Display each two coordinates in two text box one for X and one for Y (I dont´t know how to do this)
3.- inbuffer [0] = outbuffer[0]
inbuffer [1] = outbuffer[1]
4.-increment inbuffer + 2 for next two coordinates
5.-Put this data in USB (Resolved)
6.-Microcontroller sends ready bit to receive more data (resolved)
7.-Repeat from step 2 until all data is sended.
I really appreciate a little code to do this.
Thanks and Regards
Carlos
Thanks for your reply,
I am modifyng a C++ program to do my job.
For now, I have created a unsigned short TXTBuffer [65000]
enough space to load coords.
I did some exercises changing data inside TXTbuffer, debbuging and seeing that changes.
Next step is load the text file in TXTBuffer, I don´t know how to do this, the must I can do is
load a file and display it in screen. :(
Just a little help I need. The rest I will see.
Thanks again.