Topic Path: Symbol Reference > Classes > TIdMessageDecoder Class > TIdMessageDecoder Methods > ReadLn Method
ContentsIndexHome
PreviousUpNext
TIdMessageDecoder.ReadLn Method

Reads a line from an RFC message part.

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.

Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.