Differences between READ and READLN 
Author Message
 Differences between READ and READLN

The readln statement discards all other values on the same line, but read
does not. In the previous program, replacing the read statements with readln
and using the same input, the program would assign 237 to numb1, discard the
value 64, and wait for the user to enter in another value which it would
then assign to numb2.

The <return key> is read as a blank by read, and ignored by readln.
----------------------------------------------------------
Article extract from turboPascal tutorial available on site:
http://www.*-*-*.com/



Mon, 23 Jun 2003 23:46:55 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Differences between READ and READLN

2. What is the REAL difference between READ and READLN?

3. read/readln procedures

4. Read & Readln

5. Beginner needs help....How do you make readln act for a password...read

6. Newbie...help on ReadLn...Read data

7. Reading files with Readln?

8. Reading files with Readln:

9. readln in pixel graphics

10. readln inside a procedure

11. READLN help???????????

12. help needed with readln

 

 
Powered by phpBB® Forum Software