: Anybody know how to put multiple variables into one readln? Or if
: it is even possible?
i,j,k : Integer ;
x,y,x : Real ;
ReadLn (i, j, k, x, y, z) ;
When the operator enters the data from the keyboard he must delimit the variables with blanks. There is a tendency for operators to put commas between the variables, which doesn't work. The same goes if the data is coming from a text file; use blanks as delimiters.
Entering multiple strings this way is problematic since they are delimited by EoLn
. I don't think it can be done with strings, or if it can, it's not worth the effort.