Show: Delphi C++
Display Preferences

System.IniFiles.TCustomIniFile.WriteBinaryStream

From XE2 API Documentation
Jump to: navigation, search

Delphi

procedure WriteBinaryStream(const Section, Name: string; Value: TStream); virtual;

C++

virtual void __fastcall WriteBinaryStream(const System::UnicodeString Section, const System::UnicodeString Name, System::Classes::TStream* Value);

Properties

Type Visibility Source Unit Parent
procedure
function
public
System.IniFiles.pas
System.IniFiles.hpp
System.IniFiles TCustomIniFile

Description

Writes a binary value to the ini file.

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.

See Also

Personal tools
Previous Versions
Translations