I'd like to be able to read a level-of-difficulty (1-20) from the player. It seems as though file_var_read() could be used to do this if the user types the numerical value into a file, but this would be a rather ugly interface. Is there a simple mechanism for reading a numerical value from the keyboard?
Dr. Phillip M. Feldman
Re: read level-of-difficulty from standard input
[Re: pfeldman]
#220935 08/10/0821:5708/10/0821:57
inkey() is perfect. I did not initially find this function because it is in the string manipulation section of the manual instead of the input/output section.