How do I read a file into my program at compellation not and SD or some serial connection? I want to read an external text file into the program, either into several variables or preferably an array of them. That way I can change the results that get uploaded without messing around with my main program.
For example, I want to set the motor steps to the next station, time to run food motor and time to run water motor for 6 stations. To learn, I wrote this file (settings.txt) with unique numbers that would let me know what is going where.
11,12,13 21,22,23 31,32,33 41,42,43 51,52,53 61,62,63
I would like to read this file and load the numbers in …say int d1, f1, w1, carriage return or blank d2, f2…etc.
It would be nice to read to a file (results.txt) to use as a debug tool. How would I do this?