RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomIniFile.WriteBinaryStream Method

Writes a binary value to the ini file.

Pascal
procedure WriteBinaryStream(const Section: string; const Name: string; Value: TStream); virtual;
C++
virtual __fastcall WriteBinaryStream(const AnsiString Section, const AnsiString Name, TStream Value);

Call WriteBinaryStream to write a binary value from a specified stream to a specified section and key in the ini file. WriteBinaryStream writes from the current position in the stream to the end, converting the value into its hexadecimal representation. 

Section is the section that contains the target key. 

Name is the key under which the binary data is to be written. 

Value is a stream to from which the binary value can be read.

Note: Attempting to write a value to a nonexistent section or attempting to write data to a nonexistent key are not errors. In these cases, WriteBinaryStream creates the section and key and sets its initial value to the hexadecimal representation of the stream's data.
 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!