I would like to read a file containing a list of nubers, then sending those number one at a time, waiting for a reply, then sending the next number until the end of the file.
What would be a good way to do this?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
you can find an example script in the attachment which:
- reads in a text file
- waits on a text command in dataReceivedSlot
- sends a line if the command has been received
- stops itself after the last line has been sent.
I would like to read a file containing a list of nubers, then sending those number one at a time, waiting for a reply, then sending the next number until the end of the file.
What would be a good way to do this?
Hi,
you can find an example script in the attachment which:
- reads in a text file
- waits on a text command in dataReceivedSlot
- sends a line if the command has been received
- stops itself after the last line has been sent.