Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Version: Available or changed with runtime version 1.0.
Copies the information that is contained in an InStream to an OutStream.
Syntax
[Ok := ] System.CopyStream(OutStream: OutStream, InStream: InStream [, BytesToRead: Integer])
Note
This method can be invoked without specifying the data type name.
Parameters
OutStream
Type: OutStream
The OutStream object to which you will copy the information; the destination stream.
InStream
Type: InStream
The InStream object from which you want to copy; the source stream.
[Optional] BytesToRead
Type: Integer
Return Value
[Optional] Ok
Type: Boolean
true if the operation was successful; otherwise false. If you omit this optional return value and the operation does not execute successfully, a runtime error will occur.
Example
var
F1: File;
F2: File;
InS: InStream;
OutS: OutStream;
begin
F1.Open('c:\Test.txt');
F1.CreateInStream(InS);
F2.Create('c:\CopyTest.txt');
F2.CreateOutStream(OutS);
CopyStream(OutS,InS);
F1.Close();
F2.Close();
end;