Read number from text file (in computer) and store in an array in arduino

Hi,

I have a text file having the number only. for example ( save as test.txt in my c drive) :

1
3
6
9

now i would like to read this text file and store these values as an array in arduino to use later. for example, if the array name is example, then if i call example[0], i want it to give the value 1.

Any help will be highly appreciated.

Thanks,
Jahid

Which mechanism do you propose for getting access to a file on your computer?

This demo shows how to use Python to communicate with an Arduino.

You could easily modify the Python code to read a file on your PC and modify the Arduino code to put the values into an array.

You will need some means to let the Arduino know which is the first number.

...R

Thanks.

It seems to advance for me as i dont have any idea about Python and i am very new working with Arduino :(. Lets see what i can do. I will get back to you if i will have any problem.

Regards,
Jahid