How can i read an instruction from a file, for example, "OPEN", and read the condition that i want to read the next instruction?It is to say, i read "open", and i send the instruction by serial port, and i wait the answer of my robot, that is "Done>". My condition to exit of the loop is ">". Then, when i read ">", i want to read the next instruction from a file. How can i do it?
Thanks.