Internet Direct (Indy)
Home
PreviousUpNext
TIdIOHandler.Write Method (TIdStrings, Boolean)

Write the specified values to the IOHandler.

Pascal
procedure Write(
    AValue: TIdStrings; 
    AWriteLinesCount: Boolean = False
); virtual; overload;
Parameters 
Description 
AValue 
Values to write to the IOHandler.
 
AWriteLinesCount 
Indicates the line count should be written to the IOHandler. 

Write is an overloaded method in TIdIOHandler used to write various data types from the indicated source to the IOHandler. Write can use the Indy write buffering mechanism when it has been enabled. 

Write calls WriteBufferOpen to enable write buffer for the IOHandler when writing values using the TIdStrings instance in AValue. 

When AWriteLinesCount is True, the line count is written as an Integer value prior to the content in AValue. 

Write calls WriteLn using each of the strings in AValue. 

Write calls WriteBufferClose to disable write buffer for the IOHandler when writing values using the TIdStrings instance in AValue.

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.