Export (0) Print
Expand All

COPYSTREAM Function (InStream, OutStream)

Microsoft Dynamics Nav 2009

Copies the information contained in an InStream to an OutStream.


[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.

Type: Boolean

Specifies whether the data was copied.

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();

Community Additions

ADD
Show:
© 2014 Microsoft