Topic Path: Symbol Reference > Classes > TIdIOHandler Class > TIdIOHandler Methods > Write Method > Write Method (TIdStrings, Boolean)
ContentsIndexHome
PreviousUpNext
TIdIOHandler.Write Method (TIdStrings, Boolean)

Write the specified values to the IOHandler.

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.

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