RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TTextWriter.WriteLine Method ()

Writes data as characters followed by line terminator.

Pascal
procedure WriteLine; virtual; abstract; overload;
procedure WriteLine(Value: Boolean); virtual; abstract; overload;
procedure WriteLine(Value: Char); virtual; abstract; overload;
procedure WriteLine(const Value: TCharArray); virtual; abstract; overload;
procedure WriteLine(Value: Double); virtual; abstract; overload;
procedure WriteLine(Value: Integer); virtual; abstract; overload;
procedure WriteLine(Value: Int64); virtual; abstract; overload;
procedure WriteLine(Value: TObject); virtual; abstract; overload;
procedure WriteLine(Value: Single); virtual; abstract; overload;
procedure WriteLine(const Value: string); virtual; abstract; overload;
procedure WriteLine(Value: Cardinal); virtual; abstract; overload;
procedure WriteLine(Value: UInt64); virtual; abstract; overload;
procedure WriteLine(const Format: string; Args: array of const); virtual; abstract; overload;
procedure WriteLine(Value: TCharArray; Index: Integer; Count: Integer); virtual; abstract; overload;
C++
virtual __fastcall WriteLine() = 0;
virtual __fastcall WriteLine(Boolean Value) = 0;
virtual __fastcall WriteLine(Char Value) = 0;
virtual __fastcall WriteLine(const TCharArray Value) = 0;
virtual __fastcall WriteLine(Double Value) = 0;
virtual __fastcall WriteLine(int Value) = 0;
virtual __fastcall WriteLine(Int64 Value) = 0;
virtual __fastcall WriteLine(TObject * Value) = 0;
virtual __fastcall WriteLine(Single Value) = 0;
virtual __fastcall WriteLine(const AnsiString Value) = 0;
virtual __fastcall WriteLine(unsigned Value) = 0;
virtual __fastcall WriteLine(UInt64 Value) = 0;
virtual __fastcall WriteLine(const AnsiString Format, array of const Args) = 0;
virtual __fastcall WriteLine(TCharArray Value, int Index, int Count) = 0;

WriteLine writes to the destination the given data type as a text representation followed by a line terminator. 

This method is functionally identical to the Microsoft .NET method TextWriter.WriteLine

 

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