Internet Direct (Indy)
Home
PreviousUpNext
TIdMessageDecoder.ReadLn Method

Reads a line from an RFC message part.

Pascal
function ReadLn(
    const ATerminator: string = LF
): string;
Parameters 
Description 
ATerminator 
Default value is LF

String - Line read from the message part.

ReadLn is a String function in TIdMessageDecoder that reads a single line from an RFC-2822 compliant message part. ReadLn uses SourceStream, cast to a TIdStream instance, as the origin of data for the TIdStream.ReadLn method. 

The return value for ReadLn can be an empty string ("") when the line from SourceStream consists only of a line termination character sequence, or the end of SourceStream has been reached.

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.