Hello have an array of strings that loads strings from a txt file on an sd card. The txt file on the SD card can change from time to time(not while the Arduino is running).I want to be able to get the amount of elements in the array after the txt file has been loaded into the array. The txt file has lines of txt in it. Each line in the file is put into a string in the array. I want to be able to get the amount of elements in the array how can I do this?
This is your third post on basically the same subject. If I attempt to "read-between-the-lines" you are trying to implement a simple shell.
You need to rethink how command lines are entered. It is not a very good idea to read the whole file into a vector of strings. Even worse is using the String class.