Lưu ý
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử đăng nhập hoặc thay đổi thư mục.
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử thay đổi thư mục.
Copies the information that is contained in an InStream to an OutStream.
Syntax
[Ok :=] COPYSTREAM(OutStream, InStream)
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.
Property Value/Return Value
Type: Boolean
Specifies whether the data was copied.
Example
This example requires that you create the following variables.
| Variable name | DataType |
|---|---|
| F1 | File |
| F2 | File |
| InS | InStream |
| OutS | OutStream |
F1.OPEN('c:\Test.txt');
F1.CREATEINSTREAM(InS);
F2.CREATE('c:\CopyTest.txt');
F2.CREATEOUTSTREAM(OutS);
COPYSTREAM(OutS,InS);
F1.CLOSE();
F2.CLOSE();