Asked
— Edited
Resolved by Rich!
When I try to use FileReadLineRandom(c:\users\dylan_000\documents\robotrreetings.txt) As a command it gives me the wrong syntax error. Whats wrong?
How do you plan on using the returned data? That line alone would be useless since it is not assigning it to anything or comparing it to anything.
To be able to use it the command would need to be part of a process, i.e.
Or as a variable to call upon
It looks like you are trying to have a list or greetings for your robot, the script would be something like;
or
Bear in mind all are really closed brackets
Thanks, the third one is what I was doing. I'll test it soon.
Look in the examples folder and preview the file example
It seems to work, don't have my speech recognition settings set up yet so the computer doesn't speak back, but it does complete the script with no errors. Thanks Rich
@Technopro keep in mind that there are syntax examples in the manual as well. When you find a command, such as FileReadRandom(), there is an example of the syntax in the description of the manual. And also, there are many many project examples of how to use each function included in ARC
@Technopro ... I have my speech recognition setup and working... Rich's above samples I have tried work perfectly...
Got it working. All good!