Question: Testing for control characters

Hi, I'm searching through a text file looking at individual letters, characters etc.  As part of this I want to detect if the character is the control character for a new paragraph - carriage return, line feed. I believe the ASCII numbers for these are 13, 10 respectively. I'd like to know the code to do this, please.  It's something along the lines: CR:=???:  if c=CR then

where c is a character read from the text file.   ....but what goes in place of ???

Thanks, David

 

Please Wait...