it is used to read text from the command line, and save it to a variable. from there you can parse it and respond appropriately. If you are reading a whole line of text look up line input instead. A small bit of sample code is in the attached screen shot.