Internet Direct (Indy)
Home
PreviousUpNext
WriteStringToStream Function

Writes a string data type to a stream.

Pascal
procedure WriteStringToStream(
    AStream: TIdStream; 
    const AStr: string
);
Parameters 
Description 
AStream 
Stream used for outputting values in the write operation.
 
AStr 
Values to be written to the output stream. 

WriteStringToStream is a procedure used to write the values in AStr to the stream specified in AStream. 

AStream is the Stream used for outputting values in the write operation. 

AStr contains the Delphi string value to be written to the output stream. 

WriteStringToStream isolates the differences between platform-specific stream implementations supported by the Indy library. 

 

For the .Net platform, WriteStringToStream uses a TIdBytes instance to convert the values in AStr to a format suitable for writing to the stream implementation. 

Use one of the following common stream routines to read or write the associated ordinal data type using a stream instance: 

 

WriteBytesToStream

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.