Description
This tutorial is an introduction to working with text files in EZ-Builder. ARC gives you the ability to write information to text files and read information from text files. You can use this for logging data, giving your robot a memory, a way to read in data you might not want to manually enter in a script and anything else that your imagination might lead you to use text files for.
Let me add this to the "reading" of the files and data, while I can have a txt file with data in and have an EZ-Script read it does not mean my robot has "understanding" of it. To create the connections and understanding to understand that a word like "Justin" or "Josh" relates to a person and who that person is requires more scripting, which I think is what your point is.
Your idea is instead of adding that extra scripting in an EZ-Script is add it to your text file or note pad file.
That is a pretty cool idea and I would say you can do it, to a certain level of difficulty. I don't think you would want to try to build out an advanced AI full of scripts in text files because I think that approach would become unmanageable.
But like you said, if you want certain actions or scripts to active when lines are read in a text a file, you could make a comma separated file and insert your scripted commands among text separated by commas, but be mindful of any commas in your command control or action script call names so you tell ReadFile to split the read back at the spots.
This is why in the past I have used my own short hand commands in text files for the robot to read such as:
Justin Ratliff,Smile
Josh,Wave
DJ,Faint
That data might be in text file for people my robot knows and my scripts then use IF-THEN logic to carry out other scripts and actions based on those indicators in the text file like "Smile, Wave, Faint, etc." as examples.